示例#1
0
		public AssociateRequest(OpenIdProvider provider)
			: base(provider) {
			session = ProviderSession.CreateSession(provider);
			assoc_type = Util.GetRequiredArg(Query, Protocol.openid.assoc_type);
			if (Array.IndexOf(Protocol.Args.SignatureAlgorithm.All, assoc_type) < 0) {
				throw new OpenIdException(string.Format(CultureInfo.CurrentCulture,
					Strings.InvalidOpenIdQueryParameterValue,
					Protocol.openid.assoc_type, assoc_type), provider.Query) {
						ExtraArgsToReturn = CreateAssociationTypeHints(provider),
					};
			}
		}
示例#2
0
 public AssociateRequest(OpenIdProvider provider)
     : base(provider)
 {
     session    = ProviderSession.CreateSession(provider);
     assoc_type = Util.GetRequiredArg(Query, Protocol.openid.assoc_type);
     if (Array.IndexOf(Protocol.Args.SignatureAlgorithm.All, assoc_type) < 0)
     {
         throw new OpenIdException(string.Format(CultureInfo.CurrentCulture,
                                                 Strings.InvalidOpenIdQueryParameterValue,
                                                 Protocol.openid.assoc_type, assoc_type), provider.Query)
               {
                   ExtraArgsToReturn = CreateAssociationTypeHints(provider),
               };
     }
 }