authModels

package
v0.0.0-...-88dbfc4 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHubOauthReq

type GitHubOauthReq struct {
	// temporary code from GitHub to ensure authenticity of user
	// Example: 3584d83530557fdd1f46af8289938c8ef79f9dc5
	// Required: true
	Code string `json:"code" validate:"required"`
}

type GitHubRedirectResp

type GitHubRedirectResp struct {
	// redirect url string.
	// Example: https://github.com/login/oauth/authorize?scope=user&client_id=%s&redirect_uri=%s
	RedirectUrl string `json:"RedirectUrl"`
}

type LoginResp

type LoginResp struct {
	// users JWT token
	// Example: {Bearer JWT-TOKEN}
	Token string `json:"Token"`
	// indicates if this is a new users logging in for the first time
	NewUser  bool   `json:"NewUser"`
	UserName string `json:"UserName"`
}

Jump to

Keyboard shortcuts

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