Skip to content

OAuth client password

Andrea Tupini edited this page Jan 22, 2021 · 2 revisions

This version of OAuth authorization is called OAuthClientPassword, there will be others in the future, but this is the one we offer support now.

{
    "Auth": {
        "Type": "OAuthClientPassword",
        "LoginEndpoint": "https://someurl.com/services/oauth2/token ",
        "ClientId": "g2V6n_+i46jsrVMEjBf$t!68%_YyJ!gDhu",
        "ClientSecret": "g2V6n_+i46jsrVMEjBf$t!68%_YyJ!gDhu",
        "Username": "[email protected]",
        "Password": "testPasswrods"
    }
}

Note: OAuthClientPassword has no BaseURL in the ExternalServices.Config section, this because it has a LoginEndpoint, which is the place where the process of authentication starts, after the authentication is granted internally a BaseURL is given by the ExternalService and this url is used with the Endpoint added with its Subscriber inside the Subscription section.