Discover Packages
github.com/hauke96/simple-task-manager/server
auth
package
Version:
v0.0.0-...-3a7c62b
Opens a new window with list of versions in this module.
Published: Jan 8, 2023
License: CC-BY-SA-4.0, GPL-3.0
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Osm struct {
User OsmUser `xml:"user"`
}
Structs when requesting user information
type OsmUser struct {
DisplayName string `xml:"display_name,attr"`
UserId string `xml:"id,attr"`
}
type Token struct {
ValidUntil int64 `json:"valid_until"`
User string `json:"user"`
UID string `json:"uid"`
Secret string `json:"secret"`
}
Struct for authentication
verifyRequest checks the integrity of the token and the "validUntil" date. It
then returns the token but without the secret part, just the meta information
(e.g. user name) is set.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.