luci: go.chromium.org/luci/tokenserver/appengine/impl/utils/revocation Index | Files

package revocation

import "go.chromium.org/luci/tokenserver/appengine/impl/utils/revocation"

Package revocation contains utilities for implementing token revocation.

Not really implemented for now.

Index

Package Files

doc.go id.go

func GenerateTokenID Uses

func GenerateTokenID(c context.Context, kind string) (int64, error)

GenerateTokenID produces an int64 that can be used as a token identifier.

We reuse datastore ID generator to produce token ids. The tokens are not actually stored in the datastore. The generated ID sequence is associated with some entity kind (indicated via 'kind'). If we ever need to restart the ID sequence, this kind can be changed.

Package revocation imports 3 packages (graph) and is imported by 4 packages. Updated 2018-10-22. Refresh now. Tools for package owners.