Ejemplo n.º 1
0
        /// <summary>
        /// True if the "response_type" query string contains the passed responseType.
        /// See also, http://openid.net/specs/oauth-v2-multiple-response-types-1_0.html
        /// </summary>
        /// <param name="responseType">The responseType that is expected within the "response_type" query string</param>
        /// <returns>True if the "response_type" query string contains the passed responseType.</returns>
        public bool ContainsGrantType(string responseType)
        {
            var parts = ResponseType.Split(' ');

            foreach (var part in parts)
            {
                if (string.Equals(part, responseType, StringComparison.Ordinal))
                {
                    return(true);
                }
            }
            return(false);
        }