Skip to content
1 viewer

rust 1,860,549 · typescript 235,540 · javascript 132,956 · python 20,426 · 6,408 files · digest f04d4637f52b · built in 1.5 s · crystals off

crates/cre8-app-google/src/oauth.rs

cre8-app-google · module oauth · src · 481 lines (387 code, 48 comment) · sha 124495d5dd692278

Items

const AUTHORIZE_URL const TOKEN_URL const REVOKE_URL const SCOPE_OPENID const SCOPE_EMAIL const SCOPE_SEARCH_CONSOLE const SCOPE_SITE_VERIFICATION const SCOPE_ANALYTICS_READ const SCOPE_CALENDAR const STATE_VERSION const STATE_TTL_MS const MAX_CLOCK_SKEW_MS enum Feature impl Feature struct OAuthState const RETURN_PAGES struct IssuedTokens const KEY

Functions

By call-graph weight (PageRank; 1.0 is the average function). 30 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
Feature::scopessrc/oauth.rs:68method73101.3
Feature::parsesrc/oauth.rs:59method84201.2
encode_querysrc/oauth.rs:187fn71111.1
formsrc/oauth.rs:272fn31301.1
grant_revokedsrc/oauth.rs:317fn42201
scopes_forsrc/oauth.rs:78fn114411
verify_statesrc/oauth.rs:134fn244511
parse_token_responsesrc/oauth.rs:240fn131330.9
pkce_challengesrc/oauth.rs:99fn31610.9
sign_statesrc/oauth.rs:129fn41520.9
with_query_paramsrc/oauth.rs:180fn42410.9
macsrc/oauth.rs:121fn71100.9
id_token_identitysrc/oauth.rs:256fn152200.9
pkce_verifiersrc/oauth.rs:94fn41410.8
statesrc/oauth.rs:336fn101200.8
authorize_urlsrc/oauth.rs:198fn262310.8
safe_return_tosrc/oauth.rs:167fn117200.7
exchange_codesrc/oauth.rs:276fn221330.7
refreshsrc/oauth.rs:299fn141140.6
id_tokensrc/oauth.rs:433fn31100.6
revokesrc/oauth.rs:324fn31120.6
a_signed_state_round_trips_and_a_tampered_one_is_refusedsrc/oauth.rs:348fn111030.5
a_state_expires_and_cannot_be_dated_aheadsrc/oauth.rs:361fn61030.5
return_to_is_only_ever_the_google_pagesrc/oauth.rs:369fn212020.5
the_calendar_feature_asks_for_the_calendar_scope_onlysrc/oauth.rs:392fn61020.5
pkce_challenge_matches_the_rfc_7636_examplesrc/oauth.rs:400fn101020.5
the_authorize_url_asks_for_offline_access_with_pkce_and_every_feature_scopesrc/oauth.rs:412fn202020.5
a_token_response_yields_tokens_scopes_and_a_verified_email_onlysrc/oauth.rs:438fn191040.5
the_code_exchange_sends_the_verifier_and_the_bound_redirectsrc/oauth.rs:459fn161050.5
invalid_grant_reads_as_revokedsrc/oauth.rs:477fn41010.5

Source not readable from this process.