redirect url for accounts-github in codebox - authentication

I'm a windows user and I'm working on meteor application in codebox.io
In this I want github authentication and I've created application in github and gave redirect url as
http://web-3000.0bxxxx367-d592-4xx6-9xx7-7d10fxxa8c1.vm1.dynobox.io/
That is where my application is running and i gave the redirect url the sam
But when I tried to click on the login button it is not even displaying the github login page, It is displaying my application homepage,
What to give in the url, help me with this

Related

NUXT App how to make pages accessable without login?

i'm new to NUXT 3 and i created a small app.
If i'm not logged in, the page always redirect to my start page.
An authenticated user can access the page and can see all subpages.
Now, i want to create a FAQ page and a registration page.
How can i avoid these pages from redirect?
This pages should also be visible without login.

How redirect to login page if not authenticated

I am newbie in Blazor development.
I'm starting with the development of a Blazor Server App.
I would like the user to be redirected to the login page when is not logged in. Where (in what file) can I enter this check and how redirect it?
Thanks a lot.

Google OAuth2 for authentication redirect hangs

I've implemented a simple OAuth2 for Authentication login system that is working reliably on my dev server using a localhost redirect uri.
When testing from a production server, with updated redirect uri, the Google account permission interface opens up for the user logging in. After authorizing account access, the browser just hangs on "Waiting for accounts.google.com..." and doesn't go anywhere. At this point, I can see that the application has been granted access to my profile by viewing account permissions on my Google account dashboard.
If I change the redirect uri to an invalid one, I do get the invalid redirect uri Google error message back, so it looks like the redirection cannot reach my redirect uri. I can reach the reditect uri directly through a browser though. Any pointers?
Had a similar problem trying to create a "Login with Google" App. Since this was my first Google App, and I was also just first using the social networking setups in the software package which I bought BEFORE the Google API had changed, I was at a complete loss as where to start.
It finally dawned on me to redirect Google (via the App settings in the developer console) to a test web page on my site (instead of the page defined by the software package,) and all worked as expected, meaning Google redirected properly to the test page (which was actually just my root index.php). This told me that because the Google API had changed, my software package functionality was obsolete, and I needed to explore the code there.

google oauth not redirect properly

I am working on site where I have used google OAuth 2.0. when I click on login link on my index page, it takes me to the login page of the google ( all required credentials with clien_id, key, redirect url has been passed with the link) and after entering credentials, it ask for granting access to the app. when I click on grant access instead of redirecting to my redirect page it shows me following error.
You've reached this page because we have detected that Javascript is disabled in your browser. The page you attempted to load cannot display properly if scripts are disabled.
Please enable scripts and retry the operation or go back in your browser.
but in my all browsers javascript is enabled and working fine. what should I do now ?
I can probably help you figure it out. If the "granting access" page loads and doesn't give you the JS error, but you get it after submitting the form on the page, then there is something strange with your browser and it's not submitting the form correctly.
Can you tell me what browser you can reproduce this on? And if possible can you give the headers and post body of your request after you submit the form?
Getting that error when the gstatic.com domain isn't enabled in the noscript addon for firefox.

Redirect to own site when user logs in via Facebook app

I am building an app with the functionality to publish
messages to users walls while specific actions runs on
my website.
What I have done is (briefly):
Registered my own app on Facebook
Added a login button on my website with permission
to publish:
Log in on Facebook
Downloaded facebook-php-sdk library
It is now I start having problems. I do not know how
to do what I want to do now.
What I want to do:
When a user logs on to facebook via my website. I want
a file on my site to be called, where I can update the
user's data in my own database as well.
Because that is not what the canvas url is meant to do? How it
is no, seems no file at all is called on my site when
I click on Login.
Since you are using the Facebook PHP-SDK you noticed that there are two options for the users to login:
Using the XFBML button, which will:
Open a login dialog (pop-up) asking for permissions..etc
When a successful authentication/authorization is complete the dialog will close, the auth.login event will be triggered and based on that the page will get reloaded window.location.reload();
The PHP in the top of the page will get into business and $session = $facebook->getSession(); will actually retrieve a session! $user = $facebook->getUser(); will retrieve the current user
Using the Login URL generated by the Library $loginUrl = $facebook->getLoginUrl(); this URL will get you through the same flow and if you noticed there's a next redirect_uri parameter which will redirect you back after a successful process to that URL (mainly the same URL you are at), where you can change that parameter if you like.
The canvas URL is the URL Facebook uses when it displays your application from within Facebook. You would use this functionality if you expect users to use your application while in Facebook itself.
When authenticating using Facebook's API (assuming graph API usage here), you provide a redirect_uri as part of the authentication URL. Once Facebook has authorized your application, it will redirect the user's web browser to the URI you specified. This URI can be any link you desire on your site. You should use the link as the determination of when the user is logged in successfully, e.g., https://mywebsite/facebook/loggedin.