Skip to content

Commit

Permalink
Merge pull request #128 from oDepleted/trimmed-trailing-whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
omarryhan authored Oct 1, 2023
2 parents 5443a52 + fd5a8c3 commit 69d0162
Show file tree
Hide file tree
Showing 13 changed files with 272 additions and 272 deletions.
114 changes: 57 additions & 57 deletions aiogoogle/auth/creds.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,111 +31,111 @@ class IdToken(_dict):
iss (str):
* PROVIDED: always
* The Issuer Identifier for the Issuer of the response. Always https://accounts.google.com or accounts.google.com for Google ID tokens.
at_hash (str):
* Access token hash.
* Provides validation that the access token is tied to the identity token.
* If the ID token is issued with an access token in the server flow, this is always included.
* This can be used as an alternate mechanism to protect against cross-site request forgery attacks, but if you follow Step 1 and Step 3 it is not necessary to verify the access token.
email_verified (bool)
* True if the user's e-mail address has been verified; otherwise false.
sub (str):
* PROVIDED: always
* An identifier for the user, unique among all Google accounts and never reused.
* A Google account can have multiple emails at different points in time, but the sub value is never changed.
* Use sub within your application as the unique-identifier key for the user.
azp (str):
* The client_id of the authorized presenter.
* This claim is only needed when the party requesting the ID token is not the same as the audience of the ID token.
* This may be the case at Google for hybrid apps where a web application and Android app have a different client_id but share the same project.
email (str):
* The user's email address.
* This may not be unique and is not suitable for use as a primary key.
* Provided only if your scope included the string "email".
profile (str):
* The URL of the user's profile page. Might be provided when:
* The request scope included the string "profile"
* The ID token is returned from a token refresh
* When profile claims are present, you can use them to update your app's user records.
* When profile claims are present, you can use them to update your app's user records.
* Note that this claim is never guaranteed to be present.
picture (str):
* The URL of the user's profile picture. Might be provided when:
* The request scope included the string "profile"
* The ID token is returned from a token refresh
* When picture claims are present, you can use them to update your app's user records.
* Note that this claim is never guaranteed to be present.
name (str):
* The user's full name, in a displayable form. Might be provided when:
* The request scope included the string "profile"
* The ID token is returned from a token refresh
* When name claims are present, you can use them to update your app's user records. Note that this claim is never guaranteed to be present.
aud (str):
* PROVIDED: always
* The audience that this ID token is intended for.
* It must be one of the OAuth 2.0 client IDs of your application.
iat (str):
* PROVIDED: always
* The time the ID token was issued, represented in Unix time (integer seconds).
exp (str):
* PROVIDED: always
* The time the ID token expires, represented in Unix time (integer seconds).
nonce (str):
nonce (str):
* The value of the nonce supplied by your app in the authentication request.
* You should enforce protection against replay attacks by ensuring it is presented only once.
hd (str):
* The hosted G Suite domain of the user. Provided only if the user belongs to a hosted domain.
"""

Expand All @@ -153,15 +153,15 @@ class UserCreds(_dict):
expires_in (int): seconds till expiry from creation
expires_at (str): JSON datetime ISO 8601 expiry datetime
scopes (list): list of scopes owned by access token
id_token (aiogoogle.auth.creds.IdToken): Decoded OpenID JWT
id_token_jwt (str): Encoded OpenID JWT
token_type (str): Bearer
token_uri (str): URI where this token was issued from
token_info_uri (str): URI where one could get more info about this token
revoke_uri (str): URI where this token should be revoked
"""

def __init__(
Expand Down
Loading

0 comments on commit 69d0162

Please sign in to comment.