Open zhkrb opened 3 years ago
Without an OAUTH client registration process it's not possible to implement to OAUTH SSO flow. This would have to be available first.
As longer as API are providing parity, it should work. Singularity API backend need to support auth v2 format.
Everything else should be configurable in the .env
file
https://github.com/eveseat/eveapi/blob/master/src/Config/esi.php#L36-L42
So, mostly something like this I think :
EVE_ESI_HOST=esi.evepc.163.com
EVE_ESI_DATASOURCE=serenity
EVE_SSO_HOST=login.evepc.163.com
I think there was some changes to how auth was handled though wasn't there? Like due to being China device ids were needed to authenticate?
I think the sso flow is quite different.
If it's an altered flow, will need the documentation. I can't find anything about serenity auth flow.
I translated a SSO flow document that I sorted out
It' works
When you get invalid_request
error, you need delete .CCPAUTH
cookie from host: login.evepc.163.com
Then, you can re login and get access token
The major issue lies as follow:
First of all, thank you for your work. I am a player from Serenity server, now Serenity server has been in operation for some time. But unlike Tranquility server, NetEase doesn't open application registration for Serenity player. It only provides offical swagger ui for players to use: https://esi.evepc.163.com/ui
So, Can I use Swagger UI's SSO for authorization? It will return access token, and will not return refresh token, I don't know if this will affect Seat's work.
If it can be used, can we add Serenity server support for Seat? I've sorted out an Serenity server login process from Swagger UI. But I'm an Android Developer and I don't know much about PHP. So I don't quite understand how to modify Seat to add support. hope it's useful to you: Eve-Android-loginDemo. If it is difficult to understand, I can provide the translated markdown