예제 #1
0
        public String GetAuthorizationLink()
        {
            // TO DO : Add validations

            Uri uriAuth = new Uri(ENDPOINT_AUTHORIZATION);

            uriAuth = uriAuth.AddUriParameter("response_type", RESPONSE_TYPE_CODE);
            uriAuth = uriAuth.AddUriParameter("client_id", _ClientId);
            uriAuth = uriAuth.AddUriParameter("state", Guid.NewGuid().ToString("N"));
            uriAuth = uriAuth.AddUriParameter("scope", String.Join(" ", SCOPE_offline_access, SCOPE_openid, SCOPE_bloodpressure, SCOPE_activity));
            uriAuth = uriAuth.AddUriParameter("redirect_uri", _RedirectUrl.ToString());

            return(uriAuth.ToString());
        }