public interface OAuthApi
| Modifier and Type | Method and Description |
|---|---|
String |
authorizeOAuthApp(AuthorizeRequest authRequest)
will authorize an OAuth 2.0 client application to access a user's account and provide a
redirect link to follow.
|
ApiResponse<OAuthApp> |
createOAuthApp(OAuthApp app)
will register a new OAuth 2.0 client application with Mattermost acting as an OAuth 2.0 service
provider.
|
ApiResponse<Boolean> |
deauthorizeOAuthApp(String appId)
will deauthorize an OAuth 2.0 client application from accessing a user's account.
|
ApiResponse<Boolean> |
deleteOAuthApp(String appId)
deletes a registered OAuth 2.0 client application.
|
default ApiResponse<List<OAuthApp>> |
getAuthorizedOAuthAppsForUser(String userId)
gets a page of OAuth 2.0 client applications the user authorized to use access their account.
|
ApiResponse<List<OAuthApp>> |
getAuthorizedOAuthAppsForUser(String userId,
Pager pager)
gets a page of OAuth 2.0 client applications the user authorized to use access their account.
|
ApiResponse<OAuthApp> |
getOAuthApp(String appId)
gets a registered OAuth 2.0 client application with Mattermost acting as an OAuth 2.0 service
provider.
|
ApiResponse<OAuthApp> |
getOAuthAppInfo(String appId)
gets a sanitized version of a registered OAuth 2.0 client application with Mattermost acting as
an OAuth 2.0 service provider.
|
default ApiResponse<List<OAuthApp>> |
getOAuthApps()
gets a page of registered OAuth 2.0 client applications with Mattermost acting as an OAuth 2.0
service provider.
|
ApiResponse<List<OAuthApp>> |
getOAuthApps(Pager pager)
gets a page of registered OAuth 2.0 client applications with Mattermost acting as an OAuth 2.0
service provider.
|
ApiResponse<OAuthApp> |
regenerateOAuthAppSecret(String appId)
regenerates the client secret for a registered OAuth 2.0 client application.
|
ApiResponse<OAuthApp> createOAuthApp(OAuthApp app)
default ApiResponse<List<OAuthApp>> getOAuthApps()
ApiResponse<List<OAuthApp>> getOAuthApps(Pager pager)
ApiResponse<OAuthApp> getOAuthApp(String appId)
ApiResponse<OAuthApp> getOAuthAppInfo(String appId)
ApiResponse<Boolean> deleteOAuthApp(String appId)
ApiResponse<OAuthApp> regenerateOAuthAppSecret(String appId)
default ApiResponse<List<OAuthApp>> getAuthorizedOAuthAppsForUser(String userId)
ApiResponse<List<OAuthApp>> getAuthorizedOAuthAppsForUser(String userId, Pager pager)
String authorizeOAuthApp(AuthorizeRequest authRequest)
ApiResponse<Boolean> deauthorizeOAuthApp(String appId)
Copyright © 2019. All rights reserved.