public interface AuthenticationEndpoint
Modifier and Type | Method and Description |
---|---|
AuthenticationResult |
authenticateApplication(String basicAuthApp)
Creates POST request for authentication and returns result, if successful, or generates error, if not
|
AuthenticationResult |
authorizeUser(String basicAuthApp,
String userToken,
String redirectTo)
Creates POST request for authorizing user and returns result, if successful, or generates error, if not
|
PeopleToken |
authorizeUserGetToken(String basicAuthApp,
String userToken,
String redirectTo)
Creates POST request for authorizing user and returns result, if successful, or generates error, if not
|
AuthenticationResult |
authorizeUserRefreshToken(String basicAuthApp,
String refreshToken,
String scope) |
PeopleToken |
authorizeUserRefreshTokenGetToken(String basicAuthApp,
String refreshToken,
String scope) |
AuthenticationResult authenticateApplication(String basicAuthApp) throws WWException
basicAuthApp
- String, content for Authorization header constructed from WWClient.getAppCredentials()
AuthenticationResult
containing response detailsWWException
- error detailsAuthenticationResult authorizeUser(String basicAuthApp, String userToken, String redirectTo) throws WWException
basicAuthApp
- String, content for Authorization header constructed from WWClient.getAppCredentials()
userToken
- String, user token to passredirectTo
- String, URL to redirect to if successfulAuthenticationResult
containing response detailsWWException
- error detailsPeopleToken authorizeUserGetToken(String basicAuthApp, String userToken, String redirectTo) throws WWException
basicAuthApp
- String, content for Authorization header constructed from WWClient.getAppCredentials()
userToken
- String, user token to passredirectTo
- String, URL to redirect to if successfulPeopleToken
responseWWException
- error detailsAuthenticationResult authorizeUserRefreshToken(String basicAuthApp, String refreshToken, String scope) throws WWException
basicAuthApp
- String, content for Authorization header constructed from WWClient.getAppCredentials()
refreshToken
- String, refresh token to passscope
- String, scope for the tokenAuthenticationResult
containing response detailsWWException
- error detailsPeopleToken authorizeUserRefreshTokenGetToken(String basicAuthApp, String refreshToken, String scope) throws WWException
basicAuthApp
- String, content for Authorization header constructed from WWClient.getAppCredentials()
refreshToken
- String, refresh token to passscope
- String, scope for the tokenPeopleToken
containing response detailsWWException
- error detailsCopyright © 2018 OpenNTF. All rights reserved.