Table of Contents

Class CloudFoundryClientTokenResolver

Namespace
Steeltoe.Security.Authentication.CloudFoundry.Wcf
Assembly
Steeltoe.Security.Authentication.CloudFoundryWcf.dll

Get JWTs for WCF Clients

public class CloudFoundryClientTokenResolver
Inheritance
CloudFoundryClientTokenResolver
Inherited Members

Constructors

CloudFoundryClientTokenResolver(CloudFoundryOptions, HttpClient)

Initializes a new instance of the CloudFoundryClientTokenResolver class. This class can be used to get access tokens from an OAuth server

public CloudFoundryClientTokenResolver(CloudFoundryOptions options, HttpClient httpClient = null)

Parameters

options CloudFoundryOptions

Con

httpClient HttpClient

For interacting with the OAuth server. A new instance will be created if not provided.

Properties

Options

public CloudFoundryOptions Options { get; protected set; }

Property Value

CloudFoundryOptions

Methods

GetAccessToken()

Get an access token using the client_credentials grant and the application's oauth credentials

public virtual Task<string> GetAccessToken()

Returns

Task<string>

An access token