OAuth - COS301-SE-2024/BeakPeek GitHub Wiki
OAuth
Using azure we are able to handle secure login and sign up with either local, Google or Microsoft accounts.
Through flutter we utilize Flutter AppAuth to handle this as we needed to go to an external page to sign in due to google blocking embedded web views.
We retrieve an access token that has a somewhat long life span so as to facilitate long periods of offline use. This also allows for us to store the authentication token so that the app will still be available in offline
The bearer token that is retrieved is use to get user information from azure such as life list and details