示例#1
0
        public async Task <string> GetPersonData(string code, string scope)
        {
            var portal          = ConfigurationManager.AppSettings.Get("AUTH_LEVEL") == "L0" ? "Normal" : "KPI";
            var my_info_factory = MyInfoFactory.GetInstance(portal);
            var token           = await my_info_factory.RetrieveTokenAsync(code);

            return(await my_info_factory.RetrievePersonData(token, scope));
        }
示例#2
0
 public Uri GetRedirectUri(string attributes, string purpose, string state)
 {
     return(MyInfoFactory.RetrieveRedirectUrl(attributes, purpose, state));
 }