Pat Cavit.9234:

You’re now able to create OAuth Applications, manage them, and use them to create apps that can request data from authenticated APIs!

WARNING – This is all BETA-quality and may be subject to change as we discover bugs or just decide we don’t like the way it’s looking at us.

I’ve documented the process in a few images, hopefully you find it straightforward. If you find a bug please file an issue.

https://imgur.com/a/TB5B7

Sorry it took a bit longer than we were hoping for, this latest patch caused some excitement that we had to tackle first.

Lawton Campbell.8517:

Also note that since this is kind of a BETA, the application page link will not show up on the account sidebar (outside of the applications page) — you have to manually navigate to “/account/applications” to access it. We still have a handful of issues to sort out before making it more widely-visible.

Remfin.4892:

Very nice

Is there a delay for your permissions-granted showing up, or is that bugged?

Killer Rhino.6794:

Fantastic news! Thanks for all your hard work guys.

Nabrok.9023:

When I make requests on /v2/account I’m getting the {"text":"ErrBadData"} response again.

This is happening if I use my own client_id or the gw2_api_demo one.

Teranas.6150:

When I make requests on /v2/account I’m getting the {"text":"ErrBadData"} response again.

This is happening if I use my own client_id or the gw2_api_demo one.

They will look into this next week.

See GitHub Issue https://github.com/arenanet/api-cdi/issues/19

Divine Don.9752:

Anyone else getting this type of response?

{ statusCode: 400,
data: ‘{"error":“invalid_grant”,“error_description”:“Grant is expired or revoked”,“text”:"ErrSessionNotFound"}’ }

Above is what I get running the nodeJS example

Lawton Campbell.8517:

Is there a delay for your permissions-granted showing up, or is that bugged?

Uhh, what do you mean? Does the token returned from /oauth2/token not work immediately? The token should be fully working when we return it :<

Anyone else getting this type of response?

{ statusCode: 400,
data: ‘{"error":“invalid_grant”,“error_description”:“Grant is expired or revoked”,“text”:"ErrSessionNotFound"}’ }

Above is what I get running the nodeJS example

That can be caused either by attempting to use the same grant more than once, or by waiting more than a few minutes to pass the grant code to /oauth2/token (or it could be a bug in our backend). Not sure which is happening.

Does the auth-go example exhibit the same issue?

Divine Don.9752:

Anyone else getting this type of response?

{ statusCode: 400,
data: ‘{"error":“invalid_grant”,“error_description”:“Grant is expired or revoked”,“text”:"ErrSessionNotFound"}’ }

Above is what I get running the nodeJS example

That can be caused either by attempting to use the same grant more than once, or by waiting more than a few minutes to pass the grant code to /oauth2/token (or it could be a bug in our backend). Not sure which is happening.

Does the auth-go example exhibit the same issue?

You are correct that I was requesting more than once with the same code. I was doing this only because the first request returned undefined. I’m horrible at explaining things so I recorded a 60sec vid of me running through the steps of the nodeJS example:
https://www.youtube.com/watch?v=59rNUY20kSs&feature=youtu.be

As the videos shows, the first request returns undefined, second request (with the same code) gets denied. I get the same result when trying to insert my own client id & secret.

I’m not familiar with goLang.

Teranas.6150:

Insert at line 19:

console.log(err);

before or after

console.log(body);

I’m pretty sure you will get something like

{statusCode: 400, data: ‘{"text":"ErrBadData"}’ }

that is already reportet on GitHub .

Remfin.4892:

Is there a delay for your permissions-granted showing up, or is that bugged?

Uhh, what do you mean? Does the token returned from /oauth2/token not work immediately? The token should be fully working when we return it :<

The token works just fine. It doesn’t show up in the account/applications page as an authorized app (no way to revoke it). It’s my own app if that makes a difference.

Moturdrn.2837:

Is there a delay for your permissions-granted showing up, or is that bugged?

Uhh, what do you mean? Does the token returned from /oauth2/token not work immediately? The token should be fully working when we return it :<

The token works just fine. It doesn’t show up in the account/applications page as an authorized app (no way to revoke it). It’s my own app if that makes a difference.

To add to this, I get the same thing. The GW2 Api Demo app is listed, but not my own despite having given access and using it.

Teranas.6150:

Is there a delay for your permissions-granted showing up, or is that bugged?

Uhh, what do you mean? Does the token returned from /oauth2/token not work immediately? The token should be fully working when we return it :<

The token works just fine. It doesn’t show up in the account/applications page as an authorized app (no way to revoke it). It’s my own app if that makes a difference.

It seems like you’re right. I have two accounts. The one i registered the application with does not show granted privileges for this application but the other account does.

Lawton Campbell.8517:

Okay, the ErrBadData stuff should be fixed now. One of the backend servers didn’t get updated with the most recent hotfix and was early-outing because the account data was from a more recent build. Sorry about that!

Teranas.6150:

Thanks! API is working lika a charm!

I think most of my guild mates enjoy the new authentification process.

Looking forward to automatically sync guild ranks to guild forum groups =)

levionan.8506:

That’s odd, I don’t see the option available on my account page.
Would definitely like to give OAuth2 a shot when I got spare time.
Where do I go about registering my app?

Thanks!

Moturdrn.2837:

That’s odd, I don’t see the option available on my account page.
Would definitely like to give OAuth2 a shot when I got spare time.
Where do I go about registering my app?

Thanks!

It’s not yet a publicly available link on the sidebar (until you’re on the page) so you need to manually browse to the https://account.guildwars2.com/account/applications for now.

levionan.8506:

That’s odd, I don’t see the option available on my account page.
Would definitely like to give OAuth2 a shot when I got spare time.
Where do I go about registering my app?

Thanks!

It’s not yet a publicly available link on the sidebar (until you’re on the page) so you need to manually browse to the https://account.guildwars2.com/account/applications for now.

Oh, I understand now. Thanks! =)

Koala BR.8236:

My friend an me are trying to get an application registered. While I could get this done without any problems (with the account I am posting from), my friend has no luck.

As he is not comfortable with his english skills, he asked me to post about his problems.

When entering name, comment, redirection url etc. and click on “save changes” he only gets a redirection back to the same page with an url of:
https://account.guildwars2.com/account/applications/create?error=saveFailed

No further information about the error can be seen.

Me I was seeing the client id and secret plus an Icon selection on the right side of the page.

We tried everything, even entering exactly the same values I did enter on my account. He always gets this error. If I add his application data as a second application for my account, this works but I have removed it again from my account.

His account is “Dedlina Maguire.6872”. So he is stuck with testing, anything we are doing wrong here or any advice to spare?

If you need further information please feel free to ask.