partial void SetPublicDemoDataFacebookOAuth2() { oauth2 = new HolisticWare.Auth.OAuth2() { OAuth_IdApplication_IdAPI_KeyAPI_IdClient_IdCustomer = "", OAuth2_Scope = "", // "", "basic", "email", OAuth_UriAuthorization = new Uri("https://m.facebook.com/dialog/oauth/"), OAuth_UriCallbackAKARedirect = new Uri("http://xamarin.com"), }; page = new HolisticWare.XamarinForms.Authentication.PageLogin(oauth2); return; }
partial void SetPublicDemoDataGithubOAuth2() { /// https://developer.github.com/v3/oauth/#scopes oauth2 = new HolisticWare.Auth.OAuth2() { OAuth_IdApplication_IdAPI_KeyAPI_IdClient_IdCustomer = "", OAuth2_Scope = "", // "", "user", OAuth_UriAuthorization = new Uri("https://github.com/login/oauth/authorize"), OAuth_UriCallbackAKARedirect = new Uri("http://xamarin.com"), }; page = new HolisticWare.XamarinForms.Authentication.PageLogin(oauth2); return; }
partial void SetPublicDemoDataLinkedInOAuth1() { oauth1 = new HolisticWare.Auth.OAuth1() { OAuth_IdApplication_IdAPI_KeyAPI_IdClient_IdCustomer = "", OAuth1_SecretKey_ConsumerSecret_APISecret = "", OAuth1_UriRequestToken = new Uri("https://api.linkedin.com/uas/oauth/requestToken"), OAuth_UriAuthorization = new Uri("https://api.linkedin.com/uas/oauth/authorize"), OAuth_UriCallbackAKARedirect = new Uri("http://xamarin.com"), OAuth1_UriAccessToken = new Uri("https://api.linkedin.com/uas/oauth/accessToken"), }; page = new HolisticWare.XamarinForms.Authentication.PageLogin(oauth1); return; return; }
partial void SetPublicDemoDataGoogleOAuth2() { // https://www.snip2code.com/Snippet/245686/Xamarin-Google-and-Facebook-authenticati /* * clientId: "123456789.apps.googleusercontent.com", * scope: "https://www.googleapis.com/auth/userinfo.email", * authorizeUrl: new Uri ("https://accounts.google.com/o/oauth2/auth"), * redirectUrl: new Uri ("http://bunchy.com/oauth2callback"), * getUsernameAsync: null) */ oauth2 = new HolisticWare.Auth.OAuth2() { OAuth_IdApplication_IdAPI_KeyAPI_IdClient_IdCustomer = "", OAuth2_Scope = "https://www.googleapis.com/auth/userinfo.email", OAuth_UriAuthorization = new Uri("https://accounts.google.com/o/oauth2/auth"), OAuth_UriCallbackAKARedirect = new Uri("http://xamarin.com"), }; page = new HolisticWare.XamarinForms.Authentication.PageLogin(oauth2); return; }