AshAuthentication and UserIdentity for Oauth / Scopes

I'm getting my head wrapped around the framework so I will ask some stupid questions, my apologies in advance. I want to use google oauth / refresh tokens to have access to a user's google account in order to provider them services. I currently have AshAuthentication set up with google oauth strategy and it's immediately working. I did some searching for how to access and to specify the scopes. I found some resources about UserIdentity but I'm struggling to learn more about how to implement it. I am still very much adapting to the mental model of the framework. But my question for you is.. what concept am I missing / why am I struggling to find resources to understand how to better implement UserIdentity. Of course my ignorance is 100% responsible for this. But I'm not currently seeing how I can learn these things on my own and I'd prefer not to bother you all every time I have a basic question. It's also very easy for me to imagine that I need to set up oauth differently so that I have 2 implementations.. one for account sign in and one for the other requirements for my app.. I'm not sure that this is the right path though. Please advise.
2 Replies
ZachDaniel
ZachDaniel•2w ago
I'd also try the search in this discord because surely someone has talked about this before
Shawn McCool
Shawn McCoolOP•2w ago
Working on it 🙂 thanks

Did you find this page helpful?