FACEIT Connect Auth url


#1

Hi, I tried using Faceit Connect with a Flutter OAuth plugin and the Google Java library and both redirect me to this auth url: http://auth-api.team-platform/v1/oauth/login?client_id=CLIENT_ID&response_type=code&redirect_popup=false

I don’t know if I’m doing something wrong


OAuth2 Testing
#2

Hi Gordon,

I’ve taken a look at our oauth configuration and the https://api.faceit.com/auth/v1/openid_configuration endpoint was returning an old authorization_endpoint.

The correct value is: http://api.faceit.com/auth/v1/api/authorize

We are updating this value now, but let me know here if you have any further troubles and thanks for finding this!

Many Thanks,
Ross


#3

Now when I get redirected to the correct url I get HTTP code 403, Access denied for both the auth and token url.
This is the url I’m trying to open: https://api.faceit.com/auth/v1/api/authorize?client_id=CLIENT_ID&redirect_uri=http://127.0.0.1:8080/Callback&response_type=code&redirect_popup=true


#4

Since this page is meant to be accessed by a user authorizing your app to access their FACEIT data, you will need to hit the endpoint with a user bearer token in the Authorization header:

Authorization: Bearer

If you go onto the website and F12 in the network tab about 90% of the requests will be using your bearer token and you may test with this.

Careful when testing however, as we do not currently have the ability to remove an association once it has been made, so if you click “Approve” in the window with that user, they will be forever short-circuited to your redirect_uri.

Also while we’re here, I’d be interested to know why you haven’t chosen to use the FACEIT SDK to handle this flow for you?

Cheers,
Ross


#5

Now that you’re asking, I guess it would be easier to just open a WebView with Flutter and then let the SDK do the rest :thinking:
Thanks for pointing that out.

Gordon


#6

Hi, i have a problem then a play faceit with my friend. So i have a LAN connection but he have a wifi connection(notebook), on the same router, and if i am connecting first he can’t connect, but if he is connecting first i can’t connect…Pls help, what i have to do?


#7

Hi there,
I’m afraid your question is beyond the scope of this section of the forum, which is dedicated to app & game Development tools.
Please start a new thread on the Community Forum.
Cheers,

Andy
Developer Tools Team


#8

A post was split to a new topic: New pay