auth

package
v0.0.0-...-91f6600 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package auth contains the handlers required for authentication purposes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateApp

func CreateApp(ctx context.Context, w http.ResponseWriter, r *http.Request)

CreateApp api will create an app registered with the platform

func DeleteApp

func DeleteApp(ctx context.Context, w http.ResponseWriter, r *http.Request)

DeleteApp api will delete an app registered with the platform.

func GetAllApps

func GetAllApps(ctx context.Context, w http.ResponseWriter, r *http.Request)

GetAllApps api will return the list of all apps registered in the platform. This is intented for admin use

func GetApps

func GetApps(ctx context.Context, w http.ResponseWriter, r *http.Request)

GetApps api will return the list of apps registered by the user in the system

func GoogleAuth

func GoogleAuth(ctx context.Context, w http.ResponseWriter, r *http.Request)

GoogleAuth is the callback url for the Google OAuth

func Logout

func Logout(ctx context.Context, w http.ResponseWriter, r *http.Request)

Logout logs a user out of the platform

func Profile

func Profile(ctx context.Context, w http.ResponseWriter, r *http.Request)

Profile returns the profile information of the user

func Register

func Register(ctx context.Context, w http.ResponseWriter, r *http.Request)

Register registers the user with the platform. One can register only if he agrees the terms and conditions while subscribing to the newsletter is optional

func Session

func Session(ctx context.Context, w http.ResponseWriter, r *http.Request)

Session returns the session information of the user

func UpdateApp

func UpdateApp(ctx context.Context, w http.ResponseWriter, r *http.Request)

UpdateApp api will update an app registered with the platform. Only name, email and description are updated

func Urls

func Urls(ctx context.Context, w http.ResponseWriter, r *http.Request)

Urls will return the 3party auth URLs

Types

This section is empty.

Jump to

Keyboard shortcuts

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