Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GetDatasets = func(c *gin.Context) session.DatasetCache { var datasetCache session.DatasetCache cached, exists := c.Get(datasetsKey) if exists { datasetCache = cached.(session.DatasetCache) } log.Debugf("returning %v from request context", cached) return datasetCache }
GetDatasets extracts the dataset list from the request context
Functions ¶
func TokenMiddleware ¶
func TokenMiddleware() gin.HandlerFunc
TokenMiddleware performs access token verification and validation JWTs are verified and validated by the app, opaque tokens are sent to AAI for verification Successful auth results in list of authorised datasets
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.