auth

package
v1.0.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

https://www.oauth.com/oauth2-servers/client-registration/client-id-secret/

https://www.iana.org/assignments/http-authschemes/http-authschemes.xhtml

Index

Constants

View Source
const (
	DefaultSizeClientID      = 16
	DefaultSizeClientKey     = 16
	DefaultSizeClientSecret  = 32
	DefaultSizeAuthorizeCode = 16
	DefaultSizeUUID          = 64
)

Variables

View Source
var ClientKeyWithSize = ClientSecretWithSize

Functions

func AuthorizeCode

func AuthorizeCode() string

func AuthorizeCodeWithSize

func AuthorizeCodeWithSize(len int) string

func ClientID

func ClientID() string

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 ClientIDWithSize(len int) string

func ClientKey

func ClientKey() string

func ClientSecret

func ClientSecret() string

func ClientSecretWithSize

func ClientSecretWithSize(len int) string

func UUID

func UUID() string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL