Documentation

Overview

    HTTP server that uses OAuth to create security.Blessings objects.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    This section is empty.

    Types

    type IdentityServer

    type IdentityServer struct {
    	// contains filtered or unexported fields
    }

    func NewIdentityServer

    func NewIdentityServer(oauthProvider oauth.OAuthProvider, auditor audit.Auditor, blessingLogReader auditor.BlessingLogReader, revocationManager revocation.RevocationManager, caveatSelector caveats.CaveatSelector, assetsPrefix, mountNamePrefix, dischargerLocation string, registeredApps handlers.RegisteredAppMap) *IdentityServer

      NewIdentityServer returns a IdentityServer that: - uses oauthProvider to authenticate users - auditor and blessingLogReader to audit the root principal and read audit logs - revocationManager to store revocation data and grant discharges

      func (*IdentityServer) Listen

      func (s *IdentityServer) Listen(ctx, oauthCtx *context.T, externalHTTPAddr, httpAddr, tlsConfig string) (rpc.Server, []string, string)

      func (*IdentityServer) Serve

      func (s *IdentityServer) Serve(ctx, oauthCtx *context.T, externalHTTPAddr, httpAddr, tlsConfig string)

      Source Files