Open pejmanmohammadi opened 1 week ago
Hey, For permissions, callback - please check https://github.com/github-copilot-resources/copilot-metrics-viewer/blob/main/DEPLOYMENT.md#github-app-registration
Once you use GitHub App, you don't need to provide the token.
For deploying a secure app, those are your options (described in more details here: https://github.com/github-copilot-resources/copilot-metrics-viewer/blob/main/DEPLOYMENT.md)
authentication
option.Hi Piotr I hope you are doing well. It was really helpful. Now, the only thing that I need to set is the Callback URL inside the GitHub app, and I need your help. For example, if our URL is copilot.test.com http://copilot.test.com, what should I put for the Callback, and should I add some other environment variables related to the callback URL to run the container. Our GitHub is integrated with Okta SSO and we are deploying the app through the EKS. with the local test, everything was worked but with the real one, i got the error which I attached in the latest comment Thanks for your help Pejman Mohammadi
I got this when i added the callback URL
The redirect_uri is not associated with this application.
The application might be misconfigured or could be trying to redirect you to a website you weren't expecting.
Hey, the callback should be "your app URL as seen in the browser"/callaback.
In case of my deployments, I use azure container apps and the callback has the following format:
http://<YOUR Container APP URL>.azurecontainerapps.io/callback
https://<YOUR Container APP URL>.azurecontainerapps.io/callback
I don't think there should be any issues with authentication, callback is just where github will redirect you in the browser, it's not an API call
oh, and usually you can capture the callback in dev tools - just see what it was when you got the error and add it to your app :)
Hi Guys, I hope you are doing well, To create a GitHub app for authentication, do we know what the value of GitHub App fields like Callback URL and Permissions that should selected for the app in the Permissions part? And besides the GitHub App, do we still need to create an Access Token in the .env file?
I want to have a secure deployment since after running the container, the content of the .env file is available as plain text in this path localhost:/assets/app-config.js
@martedesco & @karpikpl Thanks for your help