예제 #1
0
        private SecureStorageRequest CreateRequest()
        {
            var service = RemoteUrl?.GetLeftPart(UriPartial.Path);

            if (service == null)
            {
                throw new InvalidOperationException($"No service set for {this}");
            }

            var label = $"{RemoteUrl?.Host} OpenID Connect tokens";

            return(new SecureStorageRequest(LocalUUID, service, label));
        }
        private SecureStorageRequest CreateRequest()
        {
            var account = RemoteUrl?.GetLeftPart(UriPartial.Path);

            if (account == null)
            {
                throw new InvalidOperationException($"No account set for {this}");
            }

            var label = $"{RemoteUrl?.Host} OpenID Connect tokens";

            return(new SecureStorageRequest(account, OIDCServiceName, label));
        }
예제 #3
0
 public override string ToString()
 {
     return($"OpenIDAuthenticator[{RemoteUrl?.GetLeftPart(UriPartial.Path)}]");
 }