Transact implements oauth_store.Interface.
(ctx context.Context, f func(ctx context.Context, st session.Store) error)
| 60 | |
| 61 | // Transact implements oauth_store.Interface. |
| 62 | func (s *sessionStore) Transact(ctx context.Context, f func(ctx context.Context, st session.Store) error) error { |
| 63 | return s.TransactionalInterface.Transact(ctx, func(ctx context.Context, st oauth_store.Interface) error { return f(ctx, st) }) |
| 64 | } |
| 65 | |
| 66 | // NewServer returns a new OAuth server on top of the given store. |
| 67 | func NewServer(c *component.Component, store oauth_store.TransactionalInterface, config Config, cspFunc func(config *Config, nonce string) string) (Server, error) { |