auth

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package auth centralises the logic to add authentification mechanisms to the backend

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCredentialAgainstFireBase

func CheckCredentialAgainstFireBase(ctx *gin.Context, jwt string) error

CheckCredentialAgainstFireBase simply validate the passed token against firebase.

func GetUserMeta

func GetUserMeta(ctx *gin.Context) (map[string]interface{}, error)

func ListExistingUsers

func ListExistingUsers(ctx *gin.Context) error

ListExistingUsers retrieves all users from firebase

func PostLogin

func PostLogin(ctx *gin.Context)

PostLogin add vitrnx specific user info upon login

func WithUserMeta

func WithUserMeta(ctx *gin.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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