# keystone.api.os_oauth2 module

class keystone.api.os_oauth2.AccessTokenResource

  Bases: `ResourceBase`

  delete()

    The method is not allowed.

  get()

    The method is not allowed.

  head()

    The method is not allowed.

  methods: t.ClassVar[t.Collection[str] | None] = {'DELETE', 'GET', 'HEAD', 'PATCH', 'POST', 'PUT'}

    The methods this view is registered for. Uses the same default (`["GET", "HEAD", "OPTIONS"]`) as `route` and `add_url_rule` by default.

  patch()

    The method is not allowed.

  post()

    Get an OAuth2.0 Access Token.

    POST /v3/OS-OAUTH2/token

  put()

    The method is not allowed.

class keystone.api.os_oauth2.OSAuth2API(blueprint_url_prefix='', api_url_prefix='', default_mediatype='application/json', decorators=None, errors=None)

  Bases: `APIBase`

  resource_mapping = [(<class 'keystone.api.os_oauth2.AccessTokenResource'>, '/token', None, {}, ('https://docs.openstack.org/api/openstack-identity/3/ext/OS-OAUTH2/1.0/rel/token', 'stable', {}))]

this page last updated: 2026-06-11 21:52:50

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

found an error? report a bug