keycloak

package
v0.0.0-...-0176d58 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2021 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package keycloak provides functions and structs for interacting with a Keycloak server. It is a thin wrapper over OpenID Connect and OAuth 2 packages

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Provider     *oidc.Provider
	Verifier     *oidc.IDTokenVerifier
	OAuthConfig  oauth2.Config
	OpenIDConfig *oidc.Config
	URL          string
}

Client contains necessary structs for OpenID Connect with Keycloak

func NewClient

func NewClient(url, redirect, id, secret string) (client *Client, err error)

NewClient will create a client for interacting with a Keycloak server

func (*Client) Verify

func (client *Client) Verify(token string) (*oidc.IDToken, error)

Verify contacts the OpenID Connect provider to verify a token

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL