Skip to content

Add Battlenet Provider - #260

Merged
joshbuker merged 7 commits into
Sorcery:masterfrom
jojoa:master
Nov 29, 2020
Merged

joshbuker merged 7 commits into
Sorcery:masterfrom
jojoa:master

Conversation

@jojoa

@jojoa jojoa commented Oct 26, 2020

Copy link
Copy Markdown
Contributor

I Added BattleNet as OAuth Provider as documented in theri api docu and tested it local.

@joshbuker joshbuker left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good at first glance! I'll take a closer look at this when I can and merge it into master.

@joshbuker joshbuker left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor things I noticed.

Comment thread lib/sorcery/providers/battlenet.rb
Comment thread CHANGELOG.md Outdated
Comment thread lib/generators/sorcery/templates/initializer.rb Outdated
Comment thread lib/sorcery/providers/battlenet.rb Outdated
Add Site config to initializer
Comment thread lib/generators/sorcery/templates/initializer.rb Outdated
@jojoa
jojoa requested a review from joshbuker November 15, 2020 20:34

@joshbuker joshbuker left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jojoa looks good other than the eu.battle.net concern. Do you have time to look into their documentation? A link to their docs where it talks about which subdomains to use would be helpful for me to better understand their implementation of OAuth2.

@jojoa

jojoa commented Nov 17, 2020

Copy link
Copy Markdown
Contributor Author

@jojoa looks good other than the eu.battle.net concern. Do you have time to look into their documentation? A link to their docs where it talks about which subdomains to use would be helpful for me to better understand their implementation of OAuth2.

I ve tested it. i can succesfully use the us domain with my eu account. so i think there are no problems. the doc says that only CN has an seperate Data Department. But i am not sure how this could be implemented. also the game infos could be different, but the general login info is same. so i dont think it is important for an auth Gem to have things like the Wow chars.

@jojoa

jojoa commented Nov 17, 2020

Copy link
Copy Markdown
Contributor Author

https://develop.battle.net/documentation/guides/regionality-and-apis

@joshbuker
joshbuker self-requested a review November 18, 2020 07:06
@jojoa

jojoa commented Nov 29, 2020

Copy link
Copy Markdown
Contributor Author

any news here?

@joshbuker joshbuker left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If anything is broken, it should only affect people using this specific provider and can be fixed with a later update. Going to go ahead and merge this for now.

@joshbuker
joshbuker merged commit d16fffa into Sorcery:master Nov 29, 2020
@joshbuker

Copy link
Copy Markdown
Member

@jojoa You should be able to use this by pointing your Gemfile at the master branch of Sorcery via Github. I'm planning on focusing on the v1 release of Sorcery over the next week, so I probably won't cut a new release until after that's ready to deploy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants