Exemplo n.º 1
0
        public Task <List <string> > FetchAllowedProtocolParamatersAsync(string scheme)
        {
            List <string>    result = null;
            OIDCSchemeRecord record = null;

            if (_records.TryGetValue(scheme, out record))
            {
                result = record.AllowedProtocolParamaters;
            }

            return(Task.FromResult(result ?? new List <string>()));
        }
Exemplo n.º 2
0
        public Task <string> FetchClientSecretAsync(string scheme, string clientId)
        {
            string           result       = null;
            OIDCSchemeRecord schemeRecord = null;

            if (_records.TryGetValue(scheme, out schemeRecord))
            {
                ClientRecord clientRecord = null;
                if (schemeRecord.ClientRecords.TryGetValue(clientId, out clientRecord))
                {
                    result = clientRecord.Secret;
                }
            }
            return(Task.FromResult(result));
        }