registry.services.datastore.models module

SQLAlchemy models for database integration.

class registry.services.datastore.models.DBAuthorizationCode(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

Persistence for domain.AuthorizationCode.

client
client_id

The unique identifier of the API client.

code

The authorization code itself.

created

The time when the auth code was generated.

expires

The time when the auth code expires.

redirect_uri

The URI to which the user should be redirected.

scope

The scope authorized by the user.

user_email

The email address of the arXiv user granting the authorization.

user_id

The unique identifier of the arXiv user granting the authorization.

username

The username of the arXiv user granting the authorization.

class registry.services.datastore.models.DBClient(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

Persistence for domain.Client.

authorization_codes
authorizations
client_id
created
credential
description
grant_types
name
owner_id
redirect_uri
url
class registry.services.datastore.models.DBClientAuthorization(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

Persistence for domain.ClientAuthorization.

authorization_id
authorized
client
client_id
requested
scope
class registry.services.datastore.models.DBClientCredential(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

Persistence for domain.ClientCredential.

client
client_id
client_secret
created
credential_id
class registry.services.datastore.models.DBClientGrantType(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

Persistence for domain.ClientGrantType.

authorized
client
client_id
grant_type
grant_type_id
requested