Log in to GitHub enterprise with jetbrains IDE (Intellij or Rider) - intellij-idea

There's no real guide for this, this is the existing documentation :
https://www.jetbrains.com/help/rider/GitHub.html
it's outdated.
Rider actually wants you to provide a token :
this seems to not be the personal token.
I tried it with my server, it didn't work.
There's also a button for generating the token which does not work.
it systematically generates github 404 pages :
I assume the "Server" field is supposed to be in the
https://github.com/<SERVERNAME>
or
https://github.com/organizations/<SERVERNAME>
format.
but I cannot for the life of me figure out where I get the server's token from.
Again I did generate a github personal user token, but this one is refused by github enterprise login.
just like the personal user settings, the Github enterprise settings has a "developer settings" tab :
but this tab seems to be for a different use, you create an "app" to be browsed on the "github app market", and I did create this but this is the full list of actions this gives access to :
none of which involve giving me a token.
This is neither something that can be found in the options through brute force nor something that google yields results for.
I need help.
Update:
A bit more serching lead me to this doc : https://docs.github.com/en/actions/reference/authentication-in-a-workflow#modifying-the-permissions-for-the-github_token
it seems like the GITHUB_TOKEN they are talking about is the thing I would be interested in.
at the top of the doc, the info-bubble claims this feature is not made available for users of Github free?
Is this what's going on?
this would be terrible communication on Github's and also Jet Brain's part. how are users to understand this and why does rider wish to force you to use this paid feature for integrating with github enterprise, when cloning the repo directly from a terminal that has your SSH key work just fine?
this is absurd. at the very least adding individual repos with github logins via SSH should be an available feature.

You need to enter the domain name where your Github enterprise is hosted.
Then you can click "Generate.." which opens Github in your browser
Click the green Generate button at the bottom, and then copy and paste the token into IntelliJ.
This worked for me. You could also probably navigate to the "OAuth Apps" page yourself and create a new app with the correct permissions and paste the token in.

Related

Auth problem with creating Cloud Build Triggers

I seem to have gotten my Google/Github authentication into some kind of bad state. I am attempting (repeatedly) to create a Github build trigger by the following steps:
From https://console.cloud.google.com/cloud-build/triggers click
"Create trigger"
Select Github and check the consent box.
Sign in to my Github account. This succeeds and I see the list of my repositories and my organization's repositories.
No matter what repository I select, I see this error:
There's a problem at our end
I've tried include signing out and in of my Github and Google accounts (including clearing all cookies) but nothing helps. I also asked another administrator to create the trigger and he sees the same error, which implies the issue must relate somehow between Google and Github and isn't specific to my personal account?
If anyone has seen this before or has any suggestions it would be a big help. Thanks!

google warns "Unverified developer" for private site with spreadsheets API

I privately host a site for my family that uses the Google Spreadsheets API (readonly). I received an email from google looking to "Remove risky access to your data". My site is listed with a warning:
I've gone through the verification process (filling out this form: https://support.google.com/code/contact/oauth_app_verification) but got the response that if the site is used privately "you don't need to go through the verification process". They state this in their FAQ also: OAuth Developer Verification Form FAQ.
However, the site still shows a warning in Google's security check-up. I can ignore this but I think other family members will be worried unnecessarily OR ignore future warnings about other apps assuming it's the family one they normally ignore.
Is there a way to verify myself as a developer of a private site or mark the access as trusted so the warning doesn't recur?
I ended up making my site public and going through the usual verification process.
Not really an answer, but rather to flag that this is an issue my dilemma as well. Although I run time-based Google Script within an organization. I've contacted folks at the Google Cloud Platform and they have opened a case. However, here is something interesting I've stumbled across just now. Go to your Google account and do Security Checkup
After the checkup your screen might be showing something like this
Try clicking "Dismiss" to prevent Google from removing your app.
I'm just testing it myself and if in an hour (that's how long it usually takes Google to remove your own script from the list of self-authorized apps with access to account info) Google won't remove it, I guess it would work for me!

How does the Plunker authentication work

All. Forgive me if my question is off topic or a dumb question.
I really want to know how to implement a authentication mechanist like GitHub for Plunker.
In my project.I think I have the same situation like this.
I have some websites like Plunker.
and I want to implement a SSO center authication website or services for all the other websites like GitHub.
when I click the button Sign in with GitHub in the Plunker. The website will open the new windows with the url
https://github.com/login?return_to=%2Flogin%2Foauth%2Fauthorize%3Fclient_id%3D7e377e5657c4d5c332db%26redirect_uri%3Dhttp%253A%252F%252Fplnkr.co%252Fauth%252Fgithub%26scope%3Dgist
When I succeed to login in GitHub. Then the Plunker will login with the authenticated user I just used in the GitHub.
My problem is I don't know how does the authentication works between the GitHub and Plunker.
Could someone please tell me something about it ? It will be appriciated. Thanks.
Plunker's "log in with GitHub" button uses OAuth2, an open standard for this kind of thing. It's the same technology used by Google for their sign-in with Google functionality, as well as many other providers.
Here is GitHub's documentation for adding "log in with OAuth" to your site.
Creating your own OAuth provider is a significant task, and one that you probably don't want to tackle without weighing carefully. If you do choose to go down this path you'll likely want to use an existing library for your language or stack of choice, e.g. perhaps something from this list. This is also good advice if you only plan to build an OAuth client.
As pointed out, Plunkr's login process appears to be using Github's OAuth2, but manages to pull it off on the client without redirects/reloads using window.open and postMessage. A detailed description of the technique can be found here. The demo code looks relatively painless.
The Gatekeeper project seems to be a more polished implementation (with node.js) of that idea and there is a detailed tutorial on doing client-side auth with it here.

Google Developer Console's credential side permission

I got an problem after i create and APIs on Google Developer Console and enable the GCM service,
but i want to add an server key at Credential next to APIs on left hand menu.
But it show me You do not have sufficient permissions to view this page.
Below are the image:
Is that any config i need to add?
I did follow what You do not have sufficient permissions to view this page to clear cache and use incognito mode to login, but still not work.
EDIT
Some time i relogin it work back, when i click to another side and click back it show the error again, and my solution is go to Credential than use top right corner account to logout and relogin , let it redirect you back to Credential, than it work. So is there any solution to fixed it permanently without relogin?
Thanks
It because of you have logged in multiple devices. so u have to log out from all devices. to do this go to gmail.com and log in using your email and password. and scroll down . you can see Details link . Click that link.
it will open new window. there u click
Sign out all other web sessions. than clear history. than do login and try . it will open without showing error.
I got the same problem. After following the below steps it got solved. This may help you as well.
Click on Apis under Api & auth
Click on "Google Play Game Services".
Enable the service.
Optional: enable "Google Play Developer API" as well. Most of the time it will enable by default.
I am facing the same issues.
Try using another browser like firefox - sometimes it works.
but after awhile, same error pops up.
Having the same issue as with you regardless what api i enable.. have tried all the suggestion posted earlier. but none of them worked, but when i tried to change my i.p.. using a vpn. and tried to access it.it worked, i can create or view my api now,tested it with other gmail account to confirm and started from scratch. to my surprise i didnt encounter that issue im having for hours.. no idea why my i.p is being rejected when accessing the credentials area..
I've resolve my issue, it's about the ISP you are using. I tried 3 ISP's and 1 of them got a success all the time, I don't have any permission error.

Username and Password for Repository

I was able to download eclipse to my pc but when trying to add repository dialog and its asking for username and password.
I am using Using eclipse 4.3.
I was able to download it and set it up but when following the instructions from the force.developer site it was asking me for a Username and password.
Purely a guess since you seam to have gone out of your way to not actually tell us what your trying to do or what you have already tried.
I have never used any of Salesforce.com's APIs or services, but I would guess the username/password it's asking for is the "Developer Edition" account mentioned near the bottom of this page:
https://developer.salesforce.com/page/Force.com_IDE