Skip to main content
Glama
README.md1.07 kB
# Medplum OAuth Demo This is a demonstration of how to use Medplum with an External Auth Provider or "Federated Identities". This repo is similar to [medplum-client-oauth-demo](https://github.com/medplum/medplum-client-oauth-demo), except that is uses an external identity provider. ![image](https://user-images.githubusercontent.com/749094/216679854-c09c752d-df7d-46b4-9aa9-1f2a10f82406.png) ## Setup Setup your external authentication provider (Auth0, AWS Cognito, Okta, etc). Use "https://api.medplum.com/auth/external" as the "redirect URI". Note the following details: - Authorize URL - Token URL - UserInfo URL - Client ID - Client secret Setup your Medplum account: - [Register for a Medplum account](https://www.medplum.com/docs/tutorials/register) - Create a `ClientApplication` - Set the "Redirect URI" to "http://localhost:8000/" - Add an external identity provider with the details from above Update the values in `src/main.ts` accordingly. Now you can run this demo: ```bash npm run dev ``` Open your web browser to <http://localhost:8000/>

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/medplum/medplum'

If you have feedback or need assistance with the MCP directory API, please join our Discord server