Giter Club home page Giter Club logo

network's Introduction

network's People

Contributors

aeneasr avatar archived-m avatar kevgo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

network's Issues

Broken links to docs in the console

Most of the links leading to the docs end up on a 404.

To Reproduce

Navigate to "Email Verification" within console.ory.sh and click on the link: "Email / Phone Verification in the documentation". The link leads to https://www.ory.sh/docs/guides/email-phone-verification-account-activation (404)

It looks like the docs are either not published or haven't been created yet. Perhaps link to https://www.ory.sh/kratos/docs/guides/account-activation-email-verification in the meanwhile?

Expired Ory Cloud invites causes infinite redirect loop

Preflight checklist

Describe the bug

When accepting an invite to an Ory Cloud project that has already expired, you are still able to sign up, but once you finalise your details and move to the next stage the browser enters an endless loop displaying the message This invite has expired. Please ask for a new one.

image

Reproducing the bug

  • Generate an invite
  • Await the expiry
  • Open the invite
  • Complete the registration
  • You are now in an endless loop of redirections

Relevant log output

[Report Only] Refused to connect to '<URL>' because it violates the following Content Security Policy directive: "connect-src 'self' <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL>".

_app-584363c690a23ddb.js:101 [Report Only] Refused to connect to 'https://api.console.ory.sh/.well-known/invites/member/[REDACTED]' because it violates the following Content Security Policy directive: "connect-src 'self' https://project.console.ory.sh https://*.projects.oryapis.com https://console.ory.sh wss://project.console.ory.sh wss://*.projects.oryapis.com wss://console.ory.sh https://hits-i.iubenda.com https://*.ingest.sentry.io https://sqa-web.ory.sh".


### Relevant configuration

_No response_

### Version

N/A

### On which operating system are you observing this issue?

_No response_

### In which environment are you deploying?

_No response_

### Additional Context

_No response_

Custom email templates don't allow URLs

Preflight checklist

Describe the bug

Cannot set email templates to use a remote URL such as an amazon storage bucket

Reproducing the bug

Set the email templates field to a URL

{
  "email": {
    "body": {
      "html": "https://aaaa-resources.s3.amazonaws.com/courier-templates/recovery/valid/email.body.gotmpl",
      "plaintext": "base64://xxxxx"
    },
    "subject": "base64://xxxxx"
  }
}

The response will be an error, denying the URL.

The request was malformed or contained invalid parameters
URL `https://ory-public-resources.s3.amazonaws.com/` is not allowed for `courier.templates.recovery.valid.email.body.html`.

Relevant log output

No response

Relevant configuration

No response

Version

latest

On which operating system are you observing this issue?

Ory Cloud

In which environment are you deploying?

Ory Cloud

Additional Context

Related to this slack conversation
https://ory-community.slack.com/archives/C02MR4DEEGH/p1657048318103729

Ory cloud examples for node that is not next.js

Preflight checklist

Describe your problem

The idea of an auth platform being a set of lego blocks (vs buying a fully built car) that you can use depending on your needs is awesome, BUT, I am really overwhelmed in terms of how to get started using Ory cloud.

The documentation seems to be geared to those who want to really tinker with things under the hood, but as someone who's trying to evaluate auth platforms and get a working example, it would be really helpful to have a repository of basic auth flows using Ory cloud with something like react.js + express (node.js).

I understand there is explicit support for next.js, but not everyone uses it.

Describe your ideal solution

Provide a downloadable sample project that at the last uses express or react (if an SPA) on node.js, with an env file that I can fill in the required Ory configuration values for so I can see how different parts of the Ory stack piece together. It would also allow me to try out other Ory features as I could tinker around with the sample project.

Workarounds or alternatives

Looking at other auth providers that do have downloadable projects that use their service / APIs.

Version

N/A

Additional Context

We're in the process of evaluating alternative auth platforms as we've had pretty bad experiences with Amazon Cognito. We download sample projects to see how an auth platform works and tinker with it to determine if it can support our use-cases.

It's hard for me to advocate for us to use Ory when it's hard to hit the ground running with it.

Unintuitive Ui for Custom Domains

Preflight checklist

Describe the bug

In the Ory console, when navigating to the 'Custom Domains' sections, there is a confusing and delayed update to the UI that displays current custom domains. At first, the UI suggest we don't have any custom domains set up. After a slight delay, the UI updates and displays our custom domain. I would suggest to add a spinner to indicate any background request and then update the UI when the request is resolved.

See the screen capture on Imgur

Reproducing the bug

In the Ory navigate to 'Custom Domains' and wait for your custom domain implementation to display.

Relevant log output

No response

Relevant configuration

No response

Version

Cloud Console

On which operating system are you observing this issue?

macOS

In which environment are you deploying?

Ory Cloud

Additional Context

No response

Unable to load webauthn.js from another domain

Preflight checklist

Describe the bug

Using Ory cloud and custom domain.
Application is running at domain.com and custom domain is ory.domain.com

When using webauthn, the following error occurs when trying to load the webauthn.js via javascript:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://ory.domain.com/api/kratos/public/.well-known/ory/webauthn.js. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200.

The script is added to the html as:
<script async="" crossorigin="anonymous" integrity="sha512-E3ctShTQEYTkfWrjztRCbP77lN7L0jJC2IOd6j8vqUKslvqhX/Ho3QxlQJIeTI78krzAWUQlDXd9JQ0PZlKhzQ==" referrerpolicy="no-referrer" src="https://ory.domain.com/api/kratos/public/.well-known/ory/webauthn.js" type="text/javascript"></script>

From the documentation below:
https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity

It looks like the Ory cloud server should be adding the Access-Control-Allow-Origin: * header or there should be a way to add CORS allowed domains.

Reproducing the bug

Try to load the webauthn.js script from a different domain.

Relevant log output

No response

Relevant configuration

No response

Version

0.0.1-alpha.76

On which operating system are you observing this issue?

Windows

In which environment are you deploying?

Docker Compose

Additional Context

No response

Improve error observability of RPC calls

Preflight checklist

Describe your problem

Currently, it is not possible to understand why things fail in certain cases. A good example are custom SMTP servers. Figuring out what exactly the parameters are is no easy feat, as there are different security mechanisms (TLS, SMTPS, SMTP without any encryption, ...).

When you have access to the log, that is easy as you'll see error messages like:

{"audience":"application","error":{"message":"tls: first record does not look like a TLS handshake","stack_trace":"stack trace could not be recovered from error type tls.RecordHeaderError"},"file":"/go/pkg/mod/github.com/ory/[email protected]/courier/smtp.go:201","func":"github.com/ory/kratos/courier.(*courier).dispatchEmail","level":"error","message_from":"[email protected]","msg":"Unable to send email using SMTP connection.","service_name":"Ory Kratos","service_version":"master","smtp_server":"smtp.postmarkapp.com:587","smtp_ssl_enabled":true,"time":"2022-07-07T09:47:15Z"}

Describe your ideal solution

It should be possible to see logs related to your project in the console / API.

Workarounds or alternatives

None

Additional Context

This user had significant problems figuring out what is going on and why emails are not being sent: https://ory-community.slack.com/archives/C02MR4DEEGH/p1657187128273789

I had to go into k8s and look up the logs for the courier to help him...

Name of schema is empty when listing from Console

Preflight checklist

Describe the bug

import "github.com/ory/client-go"

api := client.NewAPIClient(conf)

schemas, _, err := api.V0alpha2Api.ListIdentitySchemas(context.Background()).Execute()

if err != nil {
	panic(err)
}

for _, schema := range schemas {
	fmt.Printf("SchemaID: %s\n", schema.Id)
	fmt.Printf("SchemaName: %s\n", schema.Name)
}

Output

SchemaID: <really-long-id>
SchemaName: 
SchemaID: preset://email
SchemaName: 
SchemaID: <really-long-id>
SchemaName: 

Reproducing the bug

  1. Use "github.com/ory/client-go"
  2. List the Schemas using the API api.V0alpha2Api.ListIdentitySchemas
  3. Cannot get the schema name

Relevant log output

No response

Relevant configuration

No response

Version

latest

On which operating system are you observing this issue?

Ory Cloud

In which environment are you deploying?

Ory Cloud

Additional Context

No response

Billing plan change page bug

Preflight checklist

Describe the bug

At console.ory.sh, when I change my plan from "Startup" to "Developer" in "Usage & Billing", this occurs:
Screen Shot 2022-06-12 at 19 15 40
After refreshing the page, plan remains "Startup"

Reproducing the bug

  1. Create a profile on console.ory,sh
  2. Use "FIRST900" code for startup account
  3. Try to change billing plan from "Startup" to "Developer"

Relevant log output

No response

Relevant configuration

No response

Version

cloud

On which operating system are you observing this issue?

No response

In which environment are you deploying?

No response

Additional Context

I'm aware of monthly bills, while I'm not using cloud version of kratos.

Support GitOps

Preflight checklist

Describe your problem

Configuring through a dashboard online is nice, but it would be great if one could keep all Ory Cloud project configuration in git and have it be updated automatically every time git changes.

Describe your ideal solution

Probably a GitHub Action or general CLI tool which could be run on every commit to the main branch which would then push new configuration in some standard way to Ory Cloud to be applied.

Workarounds or alternatives

Keeping configuration manually in git and copy-pasting into web dashboard at every change.

Version

Ory Cloud

Additional Context

No response

Redirect problem after login to refresh privileged session

Preflight checklist

Describe the bug

When the user needs to login to refresh a privileged session (e.g. from the settings page), it is redirected from the current page to the login page with the following return_to url:

http://ory.domain.com/self-service/settings?flow=FLOW_ID

After a successful login, the login page should redirect the user to the address at return_to (above).

Redirecting the user there ends up in the settings page. Calling GetSelfServiceSettingsFlow at that stage provides a flow with the error below and the user needs to repeat the last action:

Unable to decode body because HTTP Request Method was "GET" but only [POST PUT PATCH] are supported.

We assume this is a bug and that at this stage we should have a settings flow updated after completing the operation the user tried to perform. We also tried to compare the settings flow from the first call and after the login, but they are pretty much the same, so no clue on what should be done differently.

Please advise.

Reproducing the bug

  1. Configure your Ory Session privileged timeout to a small interval (e.g. 30s)
  2. Go your custom kratos ui settings page
  3. Execute a privileged action (e.g. reveal backup recovery codes)
  4. Wait for redirect to login
  5. Enter the correct credentials
  6. Wait fo redirect back to settings
  7. The error message is shown and the privileged action is not executed

Relevant log output

No response

Relevant configuration

No response

Version

0.0.1-alpha.169

On which operating system are you observing this issue?

Windows

In which environment are you deploying?

Docker Compose

Additional Context

No response

Dart SDK not null safe

Report from amorevino developer:

Describe the bug

We have an SDK for Dart: https://pub.dev/packages/ory_client

This is created with Dart version 2.0. Dart support for null safety was added in 2.8 (https://dart.dev/null-safety).

This leads to errors when developing Flutter apps.

To Reproduce

https://pub.dev/packages/ory_client/score

Package is not null safe

Because:

    package:ory_client/api.dart where package:ory_client/api.dart is opting out from null safety.

Expected behavior

Package is null safe.

Additional context

I do not have experience using the package, so let me know if this is a trivial error or can be worked around easily.

Link to Page displaying JSON (406 code)

Preflight checklist

Describe the bug

With the Ory cloud free plan, when clicking on 'Invoices & Active Subscriptions' the page opens a new tab displaying JSON due to a 406 code. With a paid plan, you are redirected to stripe (i assume this is the intended behaviour).

See screen capture on Imgur

Reproducing the bug

If you have a free Ory Cloud account, navigate to 'Usage & Billing' then click on 'Invoices & Active Subscriptions'. A new tab opens displaying an error 406 in JSON format.

Relevant log output

No response

Relevant configuration

No response

Version

Cloud Console

On which operating system are you observing this issue?

macOS

In which environment are you deploying?

Ory Cloud

Additional Context

No response

Bring Your Own Domain

Feature Overview

Allow developers to integrate user flows (login, signup, recovery) using your company domain name. This optional feature will enable a better user experience for users of your application. Currently, user flows are handled in Ory hosted domain that is provided per Ory Project : $YOUR_PROJECT_SLUG.projects.oryapis.com with BYOD users will be able to login to your application using your domain, for example, mydomain.com.

Additional context

  • Self-Service with UI in the Ory Cloud Console
  • Available for paid subscriptions only
  • Number of custom domains will be limited accordingly to a subscription plan
  • Ory provided TLS certificates, custom TLS certificates will in the future

Setting up Custom Domains fail if the domain is managed by Cloudflare on the Customer side

Preflight checklist

Describe the bug

Error report in Slack:

Hello, I am attempting to set up a custom domain, but am having issues. It appears we are both using Cloudflare and after creating the CNAME record I get an 1014 CNAME Cross-User Banned error. From my limited understanding this appears to be this is a security feature of Cloudflare, preventing me from creating records thats are CNAMEs for domains in another account. This can apparently be solved by reaching out to Cloudflare support and having them mark the your domain as “allowed to be the target of CNAMEs”. Is this something Ory would be willing to do or should I find another solution?

Reproducing the bug

For a domain which is managed by Cloudflare DNS (e.g. mydomain.com:

  1. In a Startup project set up a custom domain by clicking on Custom Domains in the navigation
  2. Click on Add One Now
  3. Enter auth.mydomain.com as domain and mydomain.com as Cookie Domain
  4. Copy the URL (e.g. jovial-ganguly-h5ldtofefev2jm.projects.oryapis.com) shown in the description and open the Cloudflare UI and create the CNAME Record for auth.mydomain.com and use the copied URL as the target.
  5. Error message is shown in Cloudflare UI..

Relevant log output

No response

Relevant configuration

No response

Version

n/a

On which operating system are you observing this issue?

Ory Cloud

In which environment are you deploying?

Ory Cloud

Additional Context

No response

Multi-Factor Authentication

Feature Overview

Relying on user and password authentication only is not enough when building a secure system. It is good as a starting point in the beginning but for the production use case it is not secure enough.
Passwords are subjects of attacks like Brute Force or Credentials Stuffing but not limited to.
To address this security issue, our product must support additional authentication factors, configurable by the users.
We aim to provide MFA support compliant with U2F/FIDO2&TOTP.

Additional context

  • Self-Service with UI in the Ory Cloud Console allowing to configure flows :
    • Enabling/disabling 2nd factor authentication during login
    • Enabling/disabling 2nd factor authentication when account settings are made
    • Enabling/disabling recovery codes (lookup secrets) configuration
    • Enabling/disabling TOTP Authenticator
    • Enabling/disabling WebAuthn

No returnTo being returned

Preflight checklist

Describe the bug

I'm not seeing redirects defined in the "Browser Redirects" tab in the console being passed down to the browser. I'm using the example next.js code and their login submit code block looks like the following...

  const onSubmit = (values: SubmitSelfServiceLoginFlowBody) =>
    router
      .push(`/account/login?flow=${flow?.id}`, undefined, { shallow: true })
      .then(() =>
        ory
          .submitSelfServiceLoginFlow(String(flow?.id), undefined, values)
          .then((res) => {
            console.log("FLOW", flow)
            if (flow?.return_to) {
              // THIS never gets hit 
              // as `return_to` is never found in the flow obj
              window.location.href = flow?.return_to
              return
            }
            router.push('/')
          })
          .then(() => {})
          .catch(handleFlowError(router, 'login', setFlow))
          .catch((err: AxiosError) => {
            if (err.response?.status === 400) {
              setFlow(err.response?.data)
              return
            }
            return Promise.reject(err)
          })
      )

Reproducing the bug

Use above snippet to submit login and try and catch redirects.

Relevant log output

Example Flow log output from the code snippet above...


{
    "id": "<REDACTED>",
    "type": "browser",
    "expires_at": "2022-02-15T02:27:01.572505Z",
    "issued_at": "2022-02-15T01:27:01.572505Z",
    "request_url": "http://<REDACTED>.projects.oryapis.com/self-service/login/browser?",
    "ui": {
        "action": "/api/.ory/api/kratos/public/self-service/login?flow=<REDACTED>",
        "method": "POST",
        "nodes": [
            {
                "type": "input",
                "group": "default",
                "attributes": {
                    "name": "csrf_token",
                    "type": "hidden",
                    "value": "<REDACTED>",
                    "required": true,
                    "disabled": false,
                    "node_type": "input"
                },
                "messages": [],
                "meta": {}
            },
            {
                "type": "input",
                "group": "password",
                "attributes": {
                    "name": "password_identifier",
                    "type": "text",
                    "value": "",
                    "required": true,
                    "disabled": false,
                    "node_type": "input"
                },
                "messages": [],
                "meta": {
                    "label": {
                        "id": 1070004,
                        "text": "ID",
                        "type": "info"
                    }
                }
            },
            {
                "type": "input",
                "group": "password",
                "attributes": {
                    "name": "password",
                    "type": "password",
                    "required": true,
                    "disabled": false,
                    "node_type": "input"
                },
                "messages": [],
                "meta": {
                    "label": {
                        "id": 1070001,
                        "text": "Password",
                        "type": "info"
                    }
                }
            },
            {
                "type": "input",
                "group": "password",
                "attributes": {
                    "name": "method",
                    "type": "submit",
                    "value": "password",
                    "disabled": false,
                    "node_type": "input"
                },
                "messages": [],
                "meta": {
                    "label": {
                        "id": 1010001,
                        "text": "Sign in",
                        "type": "info",
                        "context": {}
                    }
                }
            }
        ]
    },
    "created_at": "2022-02-15T01:27:01.578772Z",
    "updated_at": "2022-02-15T01:27:01.578772Z",
    "refresh": false,
    "requested_aal": "aal1"
}

Relevant configuration

No response

Version

v0.8.3-alpha.1.pre.0.0.20220121173156-1ba5a1a31525

On which operating system are you observing this issue?

Ory Cloud

In which environment are you deploying?

Ory Cloud

Additional Context

No response

http to https redirects not configured correctly

Preflight checklist

Describe the bug

Accessing the Kratos API endpoints using http instead of https result into http error 521.

Reproducing the bug

E.g. when you try to access http://console.ory.sh this result into a 521 error page from Cloudflare.

Relevant log output

No response

Relevant configuration

No response

Version

current

On which operating system are you observing this issue?

No response

In which environment are you deploying?

No response

Additional Context

No response

Custom Domains - booked by project creator but unavailable for collaborator

Preflight checklist

Describe the bug

A colleague of mine created a (paid) Ory cloud project and activated custom domains. When he visits https://console.ory.sh/projects/<PROJECT_ID>/custom-domains he can see the domain, when I visit the very same URL it says

Your plan does not have access to the Custom Domains feature.
Consider upgrading to a paid plan.

Reproducing the bug

See description

Relevant log output

No response

Relevant configuration

No response

Version

Ory cloud

On which operating system are you observing this issue?

No response

In which environment are you deploying?

No response

Additional Context

No response

Cookies not being sent to backend after deploying

Preflight checklist

Describe the bug

I’m having a problem after deploying my frontend (https://www.boilerplate.live) and backend (https://www.api.boilerplate.live): the frontend does not send cookies to the backend. It works fine locally, and I’m not sure it has anything to do with Ory, but was asked to create an issue here.

I had problems with CORS before, but managed to solve that by putting my backend on a subdomain, but then I got this issue 😕

Reproducing the bug

Steps to reproduce the behaviour:

  1. Deploy https://github.com/amosbastian/boilerplate
  2. Go to deployed website and notice that cookies aren't being sent to backend

You can also visit https://boilerplate.live/ and try signing up. You will notice that it will register the user with Ory, but then does not send cookies to my backend.

image

Relevant log output

No response

Relevant configuration

No response

Version

v0.8.3-alpha.1.pre.0.0.20220121173156-1ba5a1a31525

On which operating system are you observing this issue?

macOS

In which environment are you deploying?

Ory Cloud

Additional Context

Here are my DNS records, maybe they are useful. I'm currently not using ory.boilerplate.live since it was causing a different error

image

My backend can be found here: https://github.com/amosbastian/boilerplate/blob/master/apps/api/src/main.ts

My Ory API client here: https://github.com/amosbastian/boilerplate/blob/master/libs/shared/utility/ory/src/lib/ory-api-client/oryApiClient.ts

My Ory browser client here: https://github.com/amosbastian/boilerplate/blob/master/libs/site/utility/src/lib/ory-browser-client/oryBrowserClient.ts

For the frontend I am following the Next.js example, which can be found here https://github.com/amosbastian/boilerplate/tree/master/apps/site

Recovery code required every time I login after disabling MFA

I disabled MFA to allow my colleague to access the account during our trial. However, after doing so, we are prompted to enter a recovery code every time we connect to Ory. We currently used 3 of the codes, and would have to renew them regularly in the current working.

Is there any option to fully disable MFA / recovery codes ?

Steps to reproduce:

  • Create a new account on Ory Cloud.
  • Enable 2FA using a 2FA app like Google Auth.
  • Save the recovery codes.
  • Disconnect and ensure you are prompted with 2FA codes when connecting back.
  • Disable 2FA and disconnect.
  • When connecting, you are now prompted to enter recovery code.

Setting a custom SMTP server breaks saving changes in the UI

Preflight checklist

Describe the bug

When I set a custom SMTP server, I am no longer able to make any changes in the UI, as clicking "save" fails with the following message:

Setting the SMTP Courier from address is only possible when supplying a custom SMTP Courier SMTP URL. To resolve this, visit: https://www.ory.sh/dr/1. Please check that the urls are in the correct format and try again.

The problem most likely happens because the UI is ignoring the custom set SMTP server. I think we might have done this out of security concerns (hide the SMTP server from the API) but obviously setting this value shouldn't break the UI.

Reproducing the bug

  1. Create project
  2. Set custom SMTP courier server using CLI
  3. Go to console, do some changes
  4. ???
  5. See error

Relevant log output

No response

Relevant configuration

No response

Version

master

On which operating system are you observing this issue?

No response

In which environment are you deploying?

No response

Additional Context

No response

Make Identity Schema ID available in the UI

Discussed in #120

Originally posted by tsu84 July 10, 2022
Hi,

I am using the admin API to create the first admin identity through /admin/identities. To make the request the identity schema id is required. I've expected to find it through the UI since it's the place where you can edit and create new schemas. I've tried the value of the options but those weren't ids. Finally I found the /schemas endpoint where the ids are provided.

It would be nice to have the id in the identity schema page, maybe with a copy button, so that this value can be found easily.

Custom Domain feature not available for members except for admin

Preflight checklist

Describe the bug

Custom domains section says there's no access to Custom Domains feature, even though the plan is upgraded. Only admin has access to this feature.

Reproducing the bug

  1. log in as a member
  2. go to Custom Domains section
  3. log in as an admin
  4. go to Custom Domains section

Relevant log output

No response

Relevant configuration

No response

Version

cloud

On which operating system are you observing this issue?

Ory Cloud

In which environment are you deploying?

Ory Cloud

Additional Context

No response

Authenticating a user login session from the callback handler

Preflight checklist

Describe your problem

I am an Ory Cloud customer. I am very interested in migrating access and I ran into a challenge. Our language is go.

I am coming from a provider which would POST to a known callback URL with data I could decode and use to complete the workflow. Using Ory Proxy, Managed UI I am able to redirect as a GET to my desired route, but there is no cookie set. I think I should use the ToSession method, but without a cookie, it seems like not the right approach.

Describe your ideal solution

Broadly speaking,

A working sample of Signup/Login/Logout while using Go with Ory Cloud would be the desired solution. It is unclear how to authenticate a login request and after many attempts at translating the Node version, I still am unsure how to manage this process.

Sharing a solution not tied to a framework (fiber, gin, etc) would be ideal for our use case.

Workarounds or alternatives

None, we paused the project until we could devote more time to review/research.

Version

alpha-38

Additional Context

No response

Changing schema leads to error 500 (on hosted ui)

I updated my schema, tested login with an existing account, that worked, but when I go to /ui/settings: error?id=0a0c448d-d821-4a70-a7f9-84fff9fe510e:

{
  "code": 500,
  "message": "expected a client to be set for github.com/ory/jsonschema/v3/httploader.HTTPClient but received nil",
  "status": "Internal Server Error"
}

Originally posted by @till in #55 (reply in thread)

Social Identity Provider integration

Feature Overview

Enable social identity providers in your Ory Project configuration to allow user authentication federation in your application.
Google, Facebook, Github + in general OIDC compliant providers will be supported.
This feature will allow your users to sign in/sign up either by using a standard username&password or by using well-known providers: "Sign in with ... " Google for example.

Additional context

  • Self-Service with UI in Ory Cloud Console
  • Facebook, Github, Google + other OIDC compliant providers will be supported

Unable to select custom Identity Schema

Preflight checklist

Describe the bug

Since early last week we are unable to select any of our custom identity schemas. The following error is shown in the Ory Console:

An error occurred: Error: Request failed with status code 400

Some of these schemes have several months and were working before. Please advise.

Reproducing the bug

  1. Go to the Ory Cloud Console
  2. Select Identity Schema on the left menu
  3. Pick one of the custom identity schemas
  4. Click update (and a notification with the described error appears)

Relevant log output

No response

Relevant configuration

No response

Version

Web Ory Cloud Console

On which operating system are you observing this issue?

Ory Cloud

In which environment are you deploying?

No response

Additional Context

No response

.NET Client Api call ListIdentitySchemasAsync not working

Preflight checklist

Describe the bug

Unable to call the .NET Client Api function ListIdentitySchemasAsync(). The error below is returned.

Required property 'blob_name' not found in JSON. Path '[0]', line 1, position 867.

Seems to be a problem in the ClientIdentitySchema model definition, that requires several properties that are missing. Below is a sample of the received json:

[
  {
    "id": ...
    "schema": ...
  },
  ..
]

Reproducing the bug

Use the .NET Client Api to call ListIdentitySchemasAsync().

Relevant log output

No response

Relevant configuration

No response

Version

0.0.1-alpha.169

On which operating system are you observing this issue?

Windows

In which environment are you deploying?

Docker Compose

Additional Context

No response

Problem with websocket requests access check via oathkeeper

Preflight checklist

Describe the bug

We're using an oathkeeper (v0.38.19-beta.1-17-g74c2581 at the moment) with a check_session_url into our ory cloud kratos. Since the cloud update with the URL changes (I think, might not be related) we're having problems with websocket connections.

We're using a similar setup to this one: ory/oathkeeper#896 (comment), except with a bearer_token instead of cookie_session.

That used to work, and non-websocket requests still work, but for ws we're now getting this in the oathkeeper logs:
level=warning msg=Access request denied audience=application error=map[debug: message:Access credentials are not sufficient to access this resource reason:Get "https://CUSTOM_URL_POINTING_TO_ORY_CLOUD_PROJECT/sessions/whoami": context canceled status:Forbidden status_code:403] granted=false http_host=HOST http_method=GET http_url=https://HOST/path http_user_agent=... service_name=ORY Oathkeeper service_version=v0.38.19-beta.1-17-g74c2581, after some time (the connection just hangs there for a bit).

Any ideas for how to debug this further would be welcome :)

Reproducing the bug

oathkeeper config something like:

authenticators:
  bearer_token:
    enabled: true
    config:
      check_session_url: https://ORY_CLOUD_PROJECT_URL/sessions/whoami
      subject_from: '@this.identity.traits.username'
      token_from:
        header: Authorization

oathkeeper rule

- id: ory:foo
  upstream:
    preserve_host: false
    url: http://foo:1234
  match:
    url: "<{https,wss}>://ws.endpoint.example.com/<**>"
    methods:
      - GET
  authenticators:
    - handler: bearer_token
  authorizer:
    handler: allow
  mutators:
    - handler: noop

and the client request is then something like
curl -v --include --no-buffer --http1.1 -H "Connection: Upgrade" -H"Upgrade: websocket" -H "Origin: http://example.com:80" -H "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" -H "Sec-WebSocket-Version: 13" -H 'Authorization: bearer SOME_TOKEN' 'https://ws.endpoint.example.com/'
(we're not really using curl, but this seems to display the same problem at least)

Relevant log output

No response

Relevant configuration

No response

Version

cloud

On which operating system are you observing this issue?

Ory Cloud

In which environment are you deploying?

Ory Cloud

Additional Context

No response

Observability of self-service account activity and authentication

Preflight checklist

Describe your problem

Administrators need visibility into account activity on Ory to

  1. have confidence the system is working and set up correctly
  2. understand overall user activity
  3. audit individual user activity

Describe your ideal solution

What and how to log

We should write structured, machine-readable activity logs for

  • signups
  • account recovery (successful and failed)
  • logins (successful and failed, incl. credential/method used)
  • profile updates
  • privileged session creation

Metadata: These logs need to carry timestamp, identity, device and IP address information.

Access & Retention: Logs need to be separated by tenant, and accessible to admins only. We retain them for 14 days. Be aware that these logs are sensitive and carry PII.

Console UI integration

Telemetry
Admins can see aggregate activity (at least signups, logins and recoveries, with associated success/failure rates) by day in an overview screen in the Console.

Auditing

  • When viewing an identity in Console, Admins, can view recent account activity.
  • PII (incl. email/phone no and IP address) is hidden by default, and require an extra click ("show PII") to display
  • An API to get account activity is desirable but not required to be publicly available and documented (yet)

Auditing the audits

  • Access to individual account activity is also logged into a separated bucket (who accessed which user's data, when).
  • This audit log is retained for 30 days (for now) and only accessible to Ory (for now)
  • Audit logs must be written on data access (as opposed logging front-end actions in console) to capture API Access to user activity

Workarounds or alternatives

Version

Additional Context

No response

Logo not displaying correctly on Ory Cloud Invoices

Preflight checklist

Describe the bug

Logo not displaying correctly on invoices. See screenshot below, red container.

Screenshot on Imgur

Reproducing the bug

In the Ory console, navigate to 'Usage & Billing', select your Start-Up plan and click on 'Invoices & Active Subscriptions'. Download you latest invoice and open the PDF document.

Relevant log output

No response

Relevant configuration

No response

Version

Cloud Console

On which operating system are you observing this issue?

macOS

In which environment are you deploying?

Ory Cloud

Additional Context

No response

SubmitSelfServiceLoginFlowWithHttpInfoAsync for Aal2 fails using .NET client in SPA (browser mode)

Preflight checklist

Describe the bug

Trying to submit a login flow for Aal2 using .NET client in SPA (browser mode). This requires passing both csrf and ory_session cookies. No clear way in the SDK docs to do this. The only options seems to use Configuration.DefaultHeaders["cookie"] (tested and working for Aal1 that requires only csrf cookie). Setting both cookies (concat cookies using '; ') using this strategy does not work. Also tried to rewrite the method SubmitSelfServiceLoginFlowWithHttpInfoAsync (from source) to add both cookies using the lines below:

        if (sessionCookie != null)
            localVarRequestOptions.HeaderParameters.Add("cookie", sessionCookie.ToString());

        if (csrfCookie != null)
            localVarRequestOptions.HeaderParameters.Add("cookie", csrfCookie.ToString());

but again it does not work if settings both cookies (only works for one).

Please advise.

Reproducing the bug

Create a .NET SPA web application (e.g. Blazor server app). Add the Ory.Client Nuget. In the code, use the SDK to initialize a login flow for Aal2, fill the form data and call SubmitSelfServiceLoginFlowWithHttpInfoAsync.

Relevant log output

No response

Relevant configuration

No response

Version

Ory.Client 0.0.1-alpha.30

On which operating system are you observing this issue?

Windows

In which environment are you deploying?

Binary

Additional Context

No response

Didn't take the payment plan cancelled and now in Infinity load

Preflight checklist

Describe the bug

I initiated payment with stripe, but decided to try free version first. Cancelled, and now stuck in infinite load no matter where I go.

image

Reproducing the bug

  1. Signup with Github
  2. Connect for the first time
  3. Get the startup option
  4. Cancel
  5. Get stuck in infinite load

Relevant log output

No response

Relevant configuration

No response

Version

alpha

On which operating system are you observing this issue?

Ory Cloud

In which environment are you deploying?

Ory Cloud

Additional Context

No response

Remove redirect "/projects/list" from NEW User signup process

Preflight checklist

Describe the bug

When user signs up for the console /registration for the first time he is being directed to /projects/lists before getting to the correct landing page /get.started

Reproducing the bug

create a new sign-up account:

  1. https://console.ory.sh/registration
  2. https://console.ory.sh/projects/lists
  3. https://console.ory.sh/get.started

Step 3 need to be removed

Relevant log output

User sign up flow 

1. https://console.ory.sh/registration
2. https://console.ory.sh/get.started

Relevant configuration

No response

Version

Web Ory Cloud Console

On which operating system are you observing this issue?

macOS

In which environment are you deploying?

No response

Additional Context

This issues a misinterpretation of analytics data

Ory Cloud console bug: adding allowed urls

Preflight checklist

Describe the bug

Hi all,

When adding wildcard subdomains via the API everything is OK, but via the UI the asterisks get replaced by %2A (the html entity for *). This will then not pass validation. Ory has full support for wildcard domains.

Screenshot:
screenshot

Reproducing the bug

  1. Login to the UI
  2. Go to browser redirects
  3. Try to add a wildcard domain
  4. ???
  5. Profit

Relevant log output

No response

Relevant configuration

No response

Version

Cloud

On which operating system are you observing this issue?

Ory Cloud

In which environment are you deploying?

No response

Additional Context

No response

return_to not honoured when registering (Login flow)

Discussed in #114

Originally posted by thecodeassassin July 5, 2022
Hi,

We start the login flow like so:

http://d3.local.maxroll.gg/.ory/self-service/login/browser?return_to=http://d3.local.maxroll.gg/?logged_in=1&after_verification_return_to=http://d3.local.maxroll.gg/?logged_in=1

After the user registers they are actually redirected to the root domain (https://maxroll.gg). I cannot really figure out why this is happening since we've not set that domain up anywhere. (no default post registration url etc).

Developer Subscription

Feature Overview

New Subscription plan allowing users to use Ory Cloud for free, however, limited in usage (API Limits) and without certain features.

Additional context

Details of limitations will be provided shortly.

`Authentication > Sign In After Registration` should be disabled if `Email Verification > Require Verified Address for Login` is selected

Preflight checklist

Describe the bug

Link to discussion on Ory Slack: https://ory-community.slack.com/archives/C02MR4DEEGH/p1655990349961859

if I select “login after registration” combined with “require email validation” in Ory Console, I’m redirected to the page after registration (Vue + Node example) and it displays my session, but if I try to perform any login operations it asks to validate email first
maybe “login after registration” should be implicitly turned off if validation is required?

Reproducing the bug

Default Ory Cloud setup, Vue + Node demo guide.

  1. Enable Authentication > Sign In After Registration in Ory Console
  2. Enable Email Verification > Require Verified Address for Login in Ory Console
  3. From unauthenticated state in Vue frontend, after going through Sign-in flow the user is returned to the page in logged in state (api/hello returns session). However, no interaction with Ory is possible before verification is complete

Relevant log output

No response

Relevant configuration

No response

Version

"@ory/client": "^0.0.1-alpha.189", Ory Cloud

On which operating system are you observing this issue?

Ory Cloud

In which environment are you deploying?

Ory Cloud

Additional Context

No response

500 Error when trying to remove users from projects

Preflight checklist

Describe the bug

When removing a user from a project, the ui gets stuck at the loading spinner due to a 500 error.

screen capture on Imgur

Reproducing the bug

Sign in to the console and navigate to the the project. Remove any user from the project.

Relevant log output

No response

Relevant configuration

No response

Version

Cloud Console

On which operating system are you observing this issue?

Ory Cloud

In which environment are you deploying?

Ory Cloud

Additional Context

No response

Missing ClientSubmitSelfServiceLoginFlowBody and ClientSubmitSelfServiceSettingsFlowBody constructors

Preflight checklist

Describe the bug

Hi,

Using the .NET client SDK, the model classes ClientSubmitSelfServiceLoginFlowBody and ClientSubmitSelfServiceSettingsFlowBody are missing the constructors below:

public ClientSubmitSelfServiceLoginFlowBody(ClientSubmitSelfServiceLoginFlowWithLookupSecretMethodBody body)
public ClientSubmitSelfServiceLoginFlowBody(ClientSubmitSelfServiceLoginFlowWithWebAuthnMethodBodybody)
public ClientSubmitSelfServiceSettingsFlowBody(ClientSubmitSelfServiceSettingsFlowWithLookupMethodBody body)
public ClientSubmitSelfServiceSettingsFlowBody(ClientSubmitSelfServiceSettingsFlowWithWebAuthnMethodBody body)

required to submit the corresponding flow methods. Tried to manually set the ActualInstance property, but the setter performs type checking and fails.

Please advise.

Reproducing the bug

  1. Create a .NET application.
  2. Add the Ory.Client Nuget.
  3. Try to build the code below:
ClientSubmitSelfServiceSettingsFlowBody body =
  new ClientSubmitSelfServiceSettingsFlowBody(
    new ClientSubmitSelfServiceSettingsFlowWithLookupMethodBody());

Relevant log output

No response

Relevant configuration

No response

Version

0.0.1-alpha.30

On which operating system are you observing this issue?

No response

In which environment are you deploying?

No response

Additional Context

No response

Custom Identity Schema not loading in the Ory Cloud UI

Preflight checklist

Describe the bug

We created a project in the Ory Cloud Console. This project is shared into my colleague's Ory Cloud account. My colleagues has proceeded to make some changes to the default identity schema, thus creating a custom identity schema. We believe, this has resulted in me not seeing the project's new custom identity schema in my Ory Cloud account. It currenlty loads an empty schema.

See UI screen capture on Imgur

See network screen capture on Imgur

Reproducing the bug

  1. Create a new project
  2. Share the project with a different user/account
  3. Have the other user create a custom identity schema
  4. In the original account, navigate to 'Identity Schema' and check if the new custom identity schema created by the other account is being displayed.

Relevant log output

No response

Relevant configuration

No response

Version

Cloud Console

On which operating system are you observing this issue?

macOS

In which environment are you deploying?

Ory Cloud

Additional Context

No response

Ory Proxy Guide issues

Preflight checklist

Describe the bug

when I run the Ory Proxy as described in
https://www.ory.sh/docs/start-building/server-side-web-app/#expressjs--nodejs
with this command
ory proxy --port 4000 http://localhost:8000/

I get the error
Error: unknown flag: --port

Reproducing the bug

See above

Relevant log output

ory proxy --port 4000 http://localhost:8000/
Error: unknown flag: --port
Usage:
  ory proxy [command]

Available Commands:
  api         Proxy Ory's APIs.
  local       Develop an application locally and integrate it with Ory
  production  Run an application in production mode with Ory integration

Flags:
  -h, --help   help for proxy

Use "ory proxy [command] --help" for more information about a command.

Relevant configuration

No response

Version

cloud

On which operating system are you observing this issue?

macOS

In which environment are you deploying?

Ory Cloud

Additional Context

No response

Ory Project Membership

Feature Overview

Currently the project is single-seated meaning only one person can apply changes. Access to the project cannot be granted to other persons like developers or QA's, it limits developer experience, but also creates a bottleneck as there is only one person responsible for everything.
To address the problem, project owners will be able to invite other collaborators to the project and assign different roles with permissions. This feature will be available but not always available, depending on pricing plan used.

Additional context

Self-Service with UI in the Ory Cloud Console allowing to invite users as collaborators with confirmation of the invitation.
Roles and permissions will be pre-defined, available to select in the UI.

No way to import/export data and configuration

Preflight checklist

Describe the bug

On the ory.sh landing page it says:

Migration to and from Ory Cloud is simple. No lock-in on vital systems.

I have not found an easy way to import existing configuration into Ory Kratos dashboard from my local Kratos instance. Ideally, I should be able to import config file, schemas, and users with a simple import flow.

Similarly, I have not find a way to export configuration, schemas, and users.

So I am not sure where does the "migration is simple" claim comes from?

Reproducing the bug

See above.

Relevant log output

No response

Relevant configuration

No response

Version

Ory Cloud

On which operating system are you observing this issue?

Ory Cloud

In which environment are you deploying?

Ory Cloud

Additional Context

No response

Can't authenticate with GitHub

Preflight checklist

Describe the bug

I'm trying to follow the set up guide for GitHub on Ory Cloud, but cannot seem to get authentication working. When GitHub redirects back to the callback, Ory consistently raises this error:

image

This is even though I believe I've configured the correct scopes on both the Ory side (user:email) and the GitHub side:

image

Reproducing the bug

Follow the GitHub tutorial to create a social provider integration with a GitHub app.

Relevant log output

No response

Relevant configuration

No response

Version

Cloud

On which operating system are you observing this issue?

No response

In which environment are you deploying?

Ory Cloud

Additional Context

No response

Ability to disable self-service registration flow

Preflight checklist

Describe your problem

Instead of using self-service registration, I'd like to manage new users sign-ups using the admin API, like an organisation user management.

However, there is currently no option to disable self-service registration. If custom registration ui is not provided, Ory Cloud uses the managed ui and, therefore, the end-user is able to navigate directly to /ui/registration and sign up himself.

Describe your ideal solution

Ideally, Ory Cloud could have a menu at the sidebar where we could enable/disable every self-service flow, including registration.

Workarounds or alternatives

As a workaround, I've considered providing a custom registration ui where I'd display an 404 page (no sign up submit button at least)

Version

0.0.1-alpha-38

Additional Context

No response

Add new update issue template in yaml lang

  • Is your feature request related to a problem? Please describe.

    • Added bug Report and feature request Template in yaml language
  • Describe the solution you'd like

    • With the help of documentation at github blog make new template

Social Sign In has to work with Ory CLI

Preflight checklist

Describe the bug

Currently, Social Sign In only works on oryapis.com domain as well as custom domains. However, it does not work on localhost and/or when using the Ory CLI.

Reproducing the bug

Set up Social Sign In and use the Ory Proxy.

Relevant log output

No response

Relevant configuration

No response

Version

master

On which operating system are you observing this issue?

No response

In which environment are you deploying?

No response

Additional Context

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.