Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Elixir Phoenix example #74

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft

feat: Elixir Phoenix example #74

wants to merge 8 commits into from

Conversation

tobbbles
Copy link

Create a basic example for Ory Network implemented with Phoenix Framework, implementing basic user flows.

Highlights how to use the ory_client Elixir package from https://github.com/ory/sdk and implement it in a simple web application.

Related Issue or Design Document

Checklist

  • I have read the contributing guidelines and signed the CLA.
  • I have referenced an issue containing the design document if my change introduces a new feature.
  • I have read the security policy.
  • I confirm that this pull request does not address a security vulnerability.
    If this pull request addresses a security vulnerability,
    I confirm that I got approval (please contact security@ory.sh) from the maintainers to push the changes.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have added the necessary documentation within the code base (if appropriate).

Further comments

This example is definitely not a fully fledged implementation, and is (currently) missing the following:

  • Settings UI
  • Verification UI
  • Recovery UI
  • Proper Error handling

I am also debating on whether to take my current UI Node implementation and break this out into it's own package; for others to use to easily implement forms in Phoenix, similar to the https://github.com/ory/elements component library.

{:plug_cowboy, "~> 2.5"},

# {:ory_client, "~> 1.1.42"}
{:ory_client,
Copy link
Author

@tobbbles tobbbles Jul 10, 2023

Choose a reason for hiding this comment

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

Waiting on ory/sdk#283

@tobbbles
Copy link
Author

Update: v7.0.0 of the openapi-generator got released with a breaking change to the Elixir client by moving to a better serialization library. I'll wait until the SDK is updated with that, and then re-jig the example

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Toby Archer seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@tobbbles
Copy link
Author

tobbbles commented Jan 3, 2024

Update: v7.0.0 of the openapi-generator got released with a breaking change to the Elixir client by moving to a better serialization library. I'll wait until the SDK is updated with that, and then re-jig the example

Upstream SDK PR is opened - ory/sdk#315

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.

None yet

2 participants