{"id":13806317,"url":"https://github.com/WolvesFortress/vxbl-oauth","last_synced_at":"2025-05-13T21:32:51.794Z","repository":{"id":196407271,"uuid":"327461893","full_name":"WolvesFortress/vxbl-oauth","owner":"WolvesFortress","description":"XboxLive oauth2 login for vweb","archived":false,"fork":false,"pushed_at":"2021-01-07T05:17:15.000Z","size":5,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-18T22:31:57.159Z","etag":null,"topics":["oauth2","vlang","vweb","xbox-live"],"latest_commit_sha":null,"homepage":"","language":"V","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WolvesFortress.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-01-07T00:30:24.000Z","updated_at":"2023-08-26T04:30:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"f89d78c4-7c89-427d-adca-b8015e9bb625","html_url":"https://github.com/WolvesFortress/vxbl-oauth","commit_stats":null,"previous_names":["wolvesfortress/vxbl-oauth"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WolvesFortress%2Fvxbl-oauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WolvesFortress%2Fvxbl-oauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WolvesFortress%2Fvxbl-oauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WolvesFortress%2Fvxbl-oauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WolvesFortress","download_url":"https://codeload.github.com/WolvesFortress/vxbl-oauth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254031409,"owners_count":22002758,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["oauth2","vlang","vweb","xbox-live"],"created_at":"2024-08-04T01:01:10.170Z","updated_at":"2025-05-13T21:32:51.501Z","avatar_url":"https://github.com/WolvesFortress.png","language":"V","readme":"# vweb XboxLive oauth2\n\nYou can integrate this into your vweb project\n\nTo run it, do `v run main.v`\n\nUpon first start, the code will panic and a `login.conf` file will be generated. You must fill it with your ClientID, ClientSecret and RedirectURI, which you can find on Azure.\n\n# Azure\n## ClientID\nRegister an azure application at https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredApps\n\nYour ClientID is the `Application (client) ID`\n## ClientSecret\nIn your application, head over to `Certificates \u0026 Secrets` tab and click `+ New client secret`.\n\nYour ClientSecret is the `Value` field of the secret you added\n## RedirectURI\nIn your application, head over to `Authentication` tab and click `+ Add a platform`.\n\nSelect `Web` and you will be asked to input `Redirect URIs`.\n\nYour `RedirectURI` will send the client to `/signin`. Since both `index()` and `signin()` are defined as websites in this project and therefore both handled by `main.v`, you should configure it to `\u003curl_to_index\u003e/signin`\n\n# Additional information\n- You can modify `main.v` to suit your needs. Some people might want a button or link to \"log in using Xbox Live\" instead.\n  Currently there is `app.redirect(request_url)` in `index()`. request_uri is the \"log in using Xbox Live\" webpage by Microsoft\n\n- You can move the `signin()` web handler to another file. You might need to modify your `RedirectURI` in BOTH Azure and `login.conf`\n\n- In `signin()` you can access all kinds of variables, which can be used in the template or to extend functionality, i.e. saving the xuid in a session cookie or do database requests and redirects\n\n- I tested the app on debian 9, ubuntu 20.4 (port 80 and 443) and windows 10 (as localhost, port 80)","funding_links":[],"categories":["Libraries"],"sub_categories":["Web"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWolvesFortress%2Fvxbl-oauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FWolvesFortress%2Fvxbl-oauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWolvesFortress%2Fvxbl-oauth/lists"}