Created
October 23, 2021 21:23
-
-
Save crspybits/b2150c56ac564890b72ae9be120d7f01 to your computer and use it in GitHub Desktop.
ResourceCredentials
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public protocol ResourceConfigurable { | |
// The public PEM key converted to a JWK. | |
var jwk: JWK_RSA { get } | |
var privateKey: String { get } | |
var clientId: String { get } | |
var clientSecret: String { get } | |
// The "base URL" to use to make requests to the users Solid Pod. | |
var storageIRI: URL { get } | |
var tokenEndpoint: URL { get } | |
var authenticationMethod: TokenEndpointAuthenticationMethod { get } | |
var refreshDelegate:RefreshDelegate? { get } | |
} | |
public protocol ResourceCredentials: AnyObject { | |
var resourceConfigurable: ResourceConfigurable! { get } | |
// Leave this nil. Just a convenience. | |
var tokenRequest:TokenRequest<JWK_RSA>? { get set } | |
var accessToken: String! { get set } | |
var refreshToken: String! { get set } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment