# OAuth2CredentialsType (Complex Type)

### Namespace: http://midpoint.evolveum.com/xml/ns/public/common/common-3

Configuration of OAuth 2.0 authentication. EXPERIMENTAL, tested for O365.

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
username | property string | [1,1] | User on the authentication server.
clientId | property string | [1,1] | Client ID from the authentication server.
clientSecret | property ProtectedStringType | [1,1] | Client secret from the authentication server.
tokenEndpoint | property anyURI | [1,1] | URL where midpoint can obtain access tokens.
scope | property string | [1,1] | Scope to be requested, for example "https://outlook.

- ### Items

  - #### username

    Flags: RAM,runtime

    Multiplicity: [1,1]

    Display order:

    User on the authentication server.

  - #### clientId

    Flags: RAM,runtime

    Multiplicity: [1,1]

    Display order:

    Client ID from the authentication server.

  - #### clientSecret

    Flags: RAM,runtime

    Multiplicity: [1,1]

    Display order:

    Client secret from the authentication server.

  - #### tokenEndpoint

    Flags: RAM,runtime

    Multiplicity: [1,1]

    Display order:

    URL where midpoint can obtain access tokens.

  - #### scope

    Flags: RAM,runtime

    Multiplicity: [1,1]

    Display order:

    Scope to be requested, for example "https://outlook.office365.com/.default" for o365.