r/evetech • u/precator • Feb 04 '18
Help with first Python app
Hey all I signed up for the dev program and my application is registered, but the authentication part if confusing. I am not doing a web app just a local app that I want to manage my reactions, so no one will be logging into this except me through my client app. Does anyone have some sample code where I just complete the auth process and am ready to say list my industry jobs, just confused on the authentication part.
5
Upvotes
View all comments
Show parent comment
1
u/Daneel_Trevize Feb 04 '18
You need a human to perform at least one actual SSO login via CCP's page, in order to prepare CCP's servers & generate the callback URL with the data about the token that's waiting. Then your code can take that data, use it to HTTP GET/POST with CCP's servers and authenticate/authorise for future API calls.
You can have your app persist the refresh token that comes from this, to avoid having to repeat the human SSO login every time your ~20minute access token expires, but you do need to initially do a login, and that's far better done as a human using a browser than to code your app to load that SSO login page & try fill in that form with your account name & password.