# Functions
No description provided by the author
CreateAuditEntry creates an audit in the database.
CreateConnection creates a connection to a postgres DB.
CreateIssuer inserts a Issuer struct to the database.
CreateUser inserts a userstruct to the DB.
DeleteIssuer deletes an issuer from the database.
DeleteToken deletes all tokens for a given issuer id.
DeleteTokens deletes all tokens for a given issuer id.
DeleteUser deletes a user from the database.
DeleteUsers deletes all tokens for a given object id.
GetAuditEntries returns all audit entries from the db.
GetFailedValidationCount returns the number of times a user failed validation for a given message.
GetIssuer returns the requested issuer from the database as Issuer struct.
GetIssuerAccessTokens returns all access tokens for a given issuer from the database.
GetIssuerByID returns the requested issuer from the database as Issuer struct.
GetIssuerKey returns the decrypted issuer key as byte array.
GetIssuers returns all Issuers from the database.
GetOidcConfiguration returns the oidc configuration.
GetQrCodeConfiguration returns the configured qr colors.
GetRootKey retrieves the key generated on system initialization.
No description provided by the author
GetSystemConfiguration returns the system config.
GetSystemProperty returns the value for the given key.
GetTokenLength returns the length of the desired token.
GetUser returns a User struct from the database.
GetUserKey returns the decrypted user key as byte array.
GetUserKeyBase32 returns the decrypted user key in base32 encoding.
GetUsers returns all users for a given issuer.
InitializeSystem will initialize the database and the root key.
InsertToken inserts an access token to the database.
PingDatabase tries to establish a connection.
UpdateIssuer updates an existing issuer.
UpdateOidcConfiguration returns the oidc configuration.
UpdateQrCodeConfiguration returns the configured qr colors.
UpdateSystemConfiguration updates the system configuration.
UpdateUser updates an existing user.
No description provided by the author
ValidateToken returns true if a token could be looked up in the db.
# Constants
No description provided by the author
DenyLimitKey the key of the deny limit entry in serverconfig table.
RootTokenFilePath location of the root-token export.
RootTokenKey is the key of the root token entry in serverconfig table.
RouterPortKey the key of the router port entry in serverconfig table.
SchemaVersionKey is the key of the schema version entry in serverconfig table.
SecretFilePath location of the root key.
VerifyTokenKey is the key of the verify token entry in serverconfig table.