Блог пользователя kuviman

Автор kuviman, история, 13 месяцев назад, По-английски

Hello everyone!

Today we announce that Codeforces now supports OpenID Connect — authentication protocol based on the OAuth 2.0. This allows third-party websites to implement logging in with Codeforces.

If you want to implement this for yourself, create an OAuth app in API settings.

Codeforces includes user's handle, current rating and avatar url as part of the id token.

Let us know if you hit any issues!

  • Проголосовать: нравится
  • +834
  • Проголосовать: не нравится

»
13 месяцев назад, скрыть # |
 
Проголосовать: нравится +239 Проголосовать: не нравится

just doesnt feel the same as submitting a compilation error on problem 1789B

»
13 месяцев назад, скрыть # |
 
Проголосовать: нравится +6 Проголосовать: не нравится

Why do you have 0 rating in the example instead of 2250?

»
13 месяцев назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

Mhm.. This would replace submitting a compilation error on problem 1869/A

»
13 месяцев назад, скрыть # |
 
Проголосовать: нравится +6 Проголосовать: не нравится

now logging in is constant time complexity

»
13 месяцев назад, скрыть # |
 
Проголосовать: нравится +29 Проголосовать: не нравится

This is good but I think Codeforces should also implement 2FA to make this feature more secure. Having only a password to secure the account is a bit inadequate when it is linked to other services.

»
13 месяцев назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится
»
13 месяцев назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

Is there any documentation to integrate this feature?

»
13 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

does that mean we could revive the cf-tools somehow?

»
13 месяцев назад, скрыть # |
 
Проголосовать: нравится +6 Проголосовать: не нравится

I suggest Luogu admins consider using this to verify one's Codeforces account so we don't have to give away the password

»
13 месяцев назад, скрыть # |
Rev. 2  
Проголосовать: нравится -10 Проголосовать: не нравится

What is a uri, or do the developers want to say url ?

»
13 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

It is really awesome, now it would be easy to implement authentication in CF Battleground.

»
13 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

This is a really nice addition, thanks for rolling out OAuth / OIDC!

While you’re working on expanding the API surface, could you also consider exposing partial scoring details for IOI style problems in the API? Right now user.status and contest.status only return the overall points field (e.g. 55/100), but on the submission page you can click “Perfect result: 100 points” to see the full judgement protocol with subtasks and per-test breakdown. Having that information available via API would be super useful.

Would it be possible to add an endpoint or extend the existing Submission object to include this protocol (at least at the subtask level)?

»
13 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

is it possible to add email to the id token?

»
6 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

It keeps returning a 401, regardless. Could you please fix it?