コード例 #1
0
ファイル: Startup.cs プロジェクト: RolandTG/OwinSamples
        private Task LookupClient(OAuthLookupClientContext context)
        {
            // this's where you go to db and find your client based on the id

            if (context.ClientId == "123456")
            {
                context.ClientFound(
                    clientSecret: "abcdef",
                    redirectUri: "http://localhost:18002/Katana.Sandbox.WebClient/ClientApp.aspx");
            }
            else if (context.ClientId == "7890ab")
            {
                context.ClientFound(
                    clientSecret: "7890ab",
                    redirectUri: "http://localhost:18002/Katana.Sandbox.WebClient/ClientPageSignIn.html");
            }
            return Task.FromResult(0);
        }
コード例 #2
0
ファイル: Startup.cs プロジェクト: stephenpatten/OwinSamples
        private Task LookupClient(OAuthLookupClientContext context)
        {
            // this's where you go to db and find your client based on the id

            if (context.ClientId == "123456")
            {
                context.ClientFound(
                    clientSecret: "abcdef",
                    redirectUri: "http://localhost:18002/Katana.Sandbox.WebClient/ClientApp.aspx");
            }
            else if (context.ClientId == "7890ab")
            {
                context.ClientFound(
                    clientSecret: "7890ab",
                    redirectUri: "http://localhost:18002/Katana.Sandbox.WebClient/ClientPageSignIn.html");
            }
            return(Task.FromResult(0));
        }