https://github.com/arctixdev/deezer-oauth-relay
Small html file that redirects to another url
https://github.com/arctixdev/deezer-oauth-relay
Last synced: 3 months ago
JSON representation
Small html file that redirects to another url
- Host: GitHub
- URL: https://github.com/arctixdev/deezer-oauth-relay
- Owner: arctixdev
- License: gpl-2.0
- Created: 2023-04-09T15:09:26.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-16T13:54:11.000Z (over 1 year ago)
- Last Synced: 2025-02-26T10:43:40.189Z (3 months ago)
- Language: HTML
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# deezer-oauth-relay
A small 10 line relay service for the Music Assistant Deezer integration. This is needed because Deezer only allows oauth to specific urls (In this case https://deezer.oauth.jonathanbangert.com/). All it does is it recieves the oauth redirect from deezer and then instantly redirects back to the local music assistant instance.This is all the code:
```html
let params = window.location.search.replace('?','').split('&');
let code = params[0].split('=')[1];
let server_url = params[1].split('=')[1];
window.location.replace(server_url + '?code=' + code)
```