-
Notifications
You must be signed in to change notification settings - Fork 2
/
constants.go
25 lines (22 loc) · 936 Bytes
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package authutil
const (
GrantTypeAuthorizationCode = "authorization_code"
GrantTypeClientCredentials = "client_credentials"
GrantTypeJWTBearer = "urn:ietf:params:oauth:grant-type:jwt-bearer" // #nosec G101
GrantTypePassword = "password"
GrantTypeRefreshToken = "refresh_token"
GrantTypeCustomStatic = "custom_static"
ParamAssertion = "assertion"
ParamGrantType = "grant_type"
ParamScope = "scope"
ParamPassword = "password"
ParamUsername = "usernamae"
ParamRefreshToken = "refresh_token"
TokenBasic = "Basic"
TokenBearer = "Bearer"
OAuth2TokenPropAccessToken = "access_token"
OAuth2TokenPropExpiresIn = "expires_in"
OAuth2TokenPropRefreshToken = "refresh_token"
OAuth2TokenPropTokenType = "token_type"
TestRedirectURL = "https://grokify.github.io/goauth/oauth2callback/"
)