Expand description
github_auth API (re-exported at this path).
Structs§
- Device
Authorization - The device and user codes GitHub issued in step 1 of the flow.
- Device
Flow - A GitHub OAuth device-flow client for one OAuth App.
- System
Poll Clock PollClockbacked byInstant::nowandstd::thread::sleep.
Enums§
- Device
Flow Error - Ways the device flow can fail.
- Device
Flow Step - Which request of the flow failed at the transport level.
- Poll
Status - Result of one poll of the token endpoint that did not end the flow.
Constants§
- ACCESS_
TOKEN_ URL - GitHub endpoint polled for the access token.
- DEFAULT_
SCOPE - OAuth scope requested by default.
repocovers fetching and pushing private repositories over HTTPS. - DEVICE_
CODE_ URL - GitHub endpoint that issues device and user codes.
- GITHUB_
HOST - Host name of GitHub’s web and Git endpoints.
- TOKEN_
USERNAME - Placeholder username GitHub documents for token authentication over HTTPS; GitHub authenticates by the token (the password) regardless of the name.
- VERIFICATION_
URL - Page where the user enters the code; used when GitHub omits
verification_urifrom its response.
Traits§
- Poll
Clock - Time source and sleeper for
DeviceFlow::wait_for_token.
Functions§
- github_
token_ credential - The credential under which a GitHub token is stored for HTTPS Git access.
- is_
github_ https_ url - Whether
urlis anhttps://URL whose host isgithub.com(orwww.github.com), ignoring case, userinfo and port.