-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to log in on localhost #225
Comments
Ideally, you should run your own I have recently merged code to remove login form from the player. It was using the password grant from the id server. Now we're going to use the authorization code grant. This stuff is not yet live on stream.resonate.coop. As a security measure, I have expired the authorization code you have just copy pasted on github. : ) |
@auggod thanks. I feel like ironing this out should be a priority. I'm willing to help with this but just need to actually figure out getting it running first. If this is in progress, should I just wait a month and come back then? I got a bit further today, but it required a lot of tinkering with nginx, and it's still not actually working. I'm just going to document all of this in case it helps others. Generally there seems to be some mix-up in the front-end variables. The documentation seems to list I added this
I also generated the certs as with the And so now, when I click on "log in" I do get redirected back to the site I'm hosting with |
Hey @simonv3, and welcome! I was not able to get nginx working with the project, and it should not be necessary to log in during local development. However, be aware that if you refresh the page, you will be logged out (per #155). @auggod has been delivering a lot of updates to our back-end and login API in the past few days. For a few days there, I too was being redirected to Let me know if you're still running into this problem, and I can help try to assist you in troubleshooting as best you can. I too, when I first started, tried to get nginx working with this project, but it's technically unnecessary (thankfully). Did you recently make an account with Resonate? Or have you had an account that's existed for a while? |
@peterklingelhofer thanks! Just to confirm you're able to get everything loaded when using the I have an account from a super long time ago. Does that affect this? |
@simonv3 you're absolutely right. As of this evening I am also getting redirected to https://beta.stream.resonate.localhost/api/v2/user/connect/resonate/callback?code=............................&state=............................. Based on @auggod said above "Ideally, you should run your own resonatecoop/id and resonatecoop/user-api. The issue is that open sourcing the api behind the player is still a work in progress..." given recent changes to these two repos and the fact that the latest development branch on here is a bit of a staging ground (has not been merged into live yet I bet), it may not work as intended until development is merged into live (and/or the WordPress transition is complete). I haven't run the |
Thanks for validating 😅 @peterklingelhofer ! I've also noticed that because of it using production API, and it looks like production API allows I'll try and take a look at an issue over the weekend! |
Hello I get a 404 if I go to http://localhost:8080/login I can see that if I adapt a 'known' URI that stuff is getting blocked: So Firefox developer tools says: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://beta.stream.resonate.coop/api/v3/resolve/apiDocs?type=apiDoc&basePath=%2Fapi%2Fv3%2Fresolve. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 302. Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://beta.stream.resonate.coop/api/v3/resolve/apiDocs?type=apiDoc&basePath=%2Fapi%2Fv3%2Fresolve. (Reason: CORS request did not succeed). Status code: (null). 12:56:37 🚨 stream2own TypeError: NetworkError when attempting to fetch resource. Any pointers are appreciated. Thanks for your hard work! |
Hey @caprenter, I believe the login issues are to be expected currently, while we transition to the new login. It's why the beam app uses a token to log in currently (check the Readme for directions as to how to get a token). The other fetch issues seem to new to me though. Maybe until those are resolved you could assist with some of the issues for the beam app. Thanks for your interest and please don't hesitate to ask any further questions! In the meantime, you could tackle some of the issues marked as EDIT: It looks like this could be the possible fix. |
@caprenter I see your sending a request to beta.stream.resonate.coop and not stream.resonate.coop. That should be the issue. |
Yeah, I think this is slightly different from the issue I reported. If you update your
When I do that, I do see albums and everything, but when I click on "Log in" I still get redirected to the live |
Thank you everyone - the environment variables are the answer to my issue. Sorry if that's taken this thread off topic. In the README Line 80 in c921f02
Does that need adding in to the README? |
It's probably worth just updating the .env.example file directly I think? |
Following the current README does not produce a working site The .env file needs altering to work. This change means the instructions would now work Issue resonatecoop#225
Operating system
Linux Mint
Browser name and version
Firefox 98
Expected behavior
Able to log in
Actual behavior
When I log in to the dev environment, I get redirected to the live api,
https://login.resonate.is/authorize?client_id=bt17o998d3b2m300u470.api.resonate.is&response_type=code&redirect_uri=https%3A%2F%2Fbeta.stream.resonate.localhost%2Fapi%2Fv2%2Fuser%2Fconnect%2Fresonate%2Fcallback&scope=stream2own&state=f42f9e81c837c281b1d2ed1ae13fba52e6973f8e
That
redirect_uri
looks incorrect, but I can't figure out how to set that on the localhost.I click on "Allow".
And then I get redirected to this:
https://beta.stream.resonate.localhost/api/v2/user/connect/resonate/callback?code=5976cc31-22e0-4385-ac91-260e5f45f0d0&state=bb083b11d5e6f242fe37f13bf9912f30ca143b37
I think I'm missing a setup step but I tried adding beta.stream.resonate.localhost to my hosts file:
And now I'm out of ideas.
The text was updated successfully, but these errors were encountered: