Documentation ¶
Overview ¶
https://www.oauth.com/oauth2-servers/client-registration/client-id-secret/
Index ¶
Constants ¶
View Source
const ( DefaultSizeClientID = 16 DefaultSizeClientKey = 16 DefaultSizeClientSecret = 32 DefaultSizeAuthorizeCode = 16 DefaultSizeUUID = 64 )
Variables ¶
View Source
var ClientKeyWithSize = ClientSecretWithSize
Functions ¶
func AuthorizeCode ¶
AuthorizeCode generates code base on tokenN tokenN can be generated by uuid.NewRandom()
func AuthorizeCodeWithSize ¶
func ClientID ¶
func ClientID() string
ClientID is the ID of client Here are some examples of client IDs from services that support OAuth 2.0: Foursquare: ZYDPLLBWSK3MVQJSIYHB1OR2JXCY0X2C5UJ2QAR2MAAIT5Q Github: 6779ef20e75817b79602 Google: 292085223830.apps.googleusercontent.com Instagram: f2a1ed52710d4533bde25be6da03b6e3 SoundCloud: 269d98e4922fb3895e9ae2108cbb5064 Windows Live: 00000000400ECB04
func ClientIDWithSize ¶
func ClientSecret ¶
func ClientSecret() string
func ClientSecretWithSize ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.