Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddArangoSyncJwtHeader ¶
AddArangoSyncJwtHeader calculates a JWT authorization header, for authorization of a request to an arangosync server, based on the given secret and adds it to the given request. If the secret is empty, nothing is done.
func AddArangodJwtHeader ¶
AddArangodJwtHeader calculates a JWT authorization header, for authorization of a request to an arangod server, based on the given secret and adds it to the given request. If the secret is empty, nothing is done.
func CreateArangodJwtAuthorizationHeader ¶
CreateArangodJwtAuthorizationHeader calculates a JWT authorization header, for authorization of a request to an arangod server, based on the given secret. If the secret is empty, nothing is done.
func VerifyArangoSyncJwtHeader ¶
VerifyArangoSyncJwtHeader verifies the bearer token in the given request with the given secret. If returns nil when verification succeed, an error if verification fails. If the secret is empty, nothing is done.
Types ¶
This section is empty.