auth

package
v1.2.77 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MIT Imports: 2 Imported by: 1

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

func AuthorizeCode(tokenN ...byte) string

AuthorizeCode generates code base on tokenN tokenN can be generated by uuid.NewRandom()

func AuthorizeCodeWithSize

func AuthorizeCodeWithSize(len int) string

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 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