starved
11/30/2025, 5:50 AMconst baseUrl = 'http://localhost:8103/';
- const clientId = '....' (to the client ID displayed in the Medplum App)
- const redirectUri = 'http://localhost:8000/';
- Then I run the demo at http://localhost:8000/
So when I click the "login" button on the oauth demo page, it redirects me to http://localhost:3000 (Medplum App) and prompts me to login
Question:
Can we do this: "on our own app page, we let user input email and password, then send them to Medplum Server for authentication, then the Server redirects back to our own app page"? (so we can do auth without running Medplum App)reshma
11/30/2025, 1:50 PMstarved
12/01/2025, 3:15 AMMaddy
12/01/2025, 10:05 PM/oauth2/authorize endpoint, correct? That endpoint will automatically redirect to whatever the appBaseUrl parameter is in server, which is probably localhost:3000. I think you might want to use the /auth/login in your case. Is that what your appBaseUrl is set to?starved
12/01/2025, 11:34 PM