ancient-judge-84558
05/16/2023, 9:05 AMstrong-controller-46383
05/16/2023, 1:24 PMlimited-photographer-61008
05/16/2023, 1:29 PMreturn_to
param to the logout url, the redirect only seems to work if the value is a subpath of one of my allowed urls. It does not work if I try to redirect to just the root/base path. e.g. if I had https://*.<http://example.com/|example.com/>
in my allowed urls, I can redirect to <https://foo.example.com/bar>
but I can’t redirect to <https://foo.example.com/>
.high-ram-25481
05/17/2023, 1:53 PMpayload: {
error: 'invalid_grant',
error_description: 'The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client. The refresh token has not been found: not_found'
}
lively-scientist-17848
05/17/2023, 2:22 PMlimited-photographer-61008
05/17/2023, 5:35 PMrich-cartoon-11559
05/18/2023, 1:17 PMalert-painter-66256
05/18/2023, 8:44 PMglamorous-parrot-72599
05/19/2023, 6:46 AMauthorizers.remote_json.enabled: false
makes the pod up but then none of endpoints like http://ory.test.info/panel/welcome works. Wondering what would be the fix to have the example up and running?careful-kangaroo-59324
05/19/2023, 2:09 PMambitious-apple-12419
05/22/2023, 3:16 AMOry Account Experience
entirely in production?some-oyster-69509
05/22/2023, 5:51 AMpowerful-ram-10043
05/22/2023, 8:52 AMsome-oyster-69509
05/22/2023, 9:00 AMbig-evening-36539
05/22/2023, 9:03 AMlively-scientist-17848
05/22/2023, 11:04 AM@ory/integrations/next-edge
to handle proxying Ory cloud locally to avoid CORS issues. This has worked fine with our integration with Ory Identities.
I’m now having trouble getting this to work with Hydra as the proxied openid discovery endpoint (.well-known/openid-configuration
) returns relative paths for the Authorization and Token endpoints in this configuration.
This causes issues with the OIDC library we are using to obtain tokens (react-oidc-context
).
Is there a known good configuration for doing Oauth with Ory and next.js with ``@ory/integrations/next-edge` that I can use here?curved-fountain-46946
05/22/2023, 11:49 AMlogin.Flow.Active
is unset, and thereby omitted. I'm not sure how a flow can get into a state where the CredentialsType is not set, particularly since this is in the "after" hook - but it results in the jsonnet parser failing because the field does not exist (in the json body that is, it's annotated with omitempty).
So, 1: How can a login flow even get into a state where there is no credentials type?
and 2: Is the entire field meant to be optional, since it's 'omitempty'?
For clarification, we use that field in our validation logic, since there are different things to validate depending on what login type is used 🙂.gray-translator-54415
05/22/2023, 11:58 AMimport { useState, useEffect } from "react";
import { useRouter } from 'next/router';
import { Button } from "@mui/material";
import style from './LoginButton.module.css';
import ory from './Ory'
interface LoginButtonProps {
onSignedIn?: (signedIn: boolean) => void;
}
function LoginButton(props: LoginButtonProps) {
const router = useRouter();
const [isLoggedIn, setIsLoggedIn] = useState(false);
const [logoutUrl, setLogoutUrl] = useState<string>();
function handleLogin() {
ory.createBrowserLoginFlow().then((response) => {
router.push(`${process.env.NEXT_PUBLIC_ORY_SDK_URL}/ui/login`);
})
}
useEffect(() => {
ory.toSession()
.then((response) => {
setIsLoggedIn(true);
ory.createBrowserLogoutFlow().then(({ data }) => {
setLogoutUrl(data.logout_url);
});
})
.catch(() => {
setIsLoggedIn(false);
})
.finally(() => {
if (props.onSignedIn) {
props.onSignedIn(isLoggedIn);
}
});
}, [isLoggedIn, props]);
if (!isLoggedIn)
return <Button onClick={handleLogin} className={style.loginbuttonstyle}>Log In</Button>
else
return <></>
}
export default LoginButton;
with Ory.tsx containing:
import { Configuration, FrontendApi } from "@ory/client";
const ory = new FrontendApi(
new Configuration({
basePath: process.env.NEXT_PUBLIC_ORY_SDK_URL,
baseOptions: {
withCredentials: true,
},
})
);
export default ory;
Ory is setup with the customer domain details in the second attached pic
Final pic shows DNS settings inside of Vercel.
Desperate to get this solved and would appreciate any help at all.quiet-window-70232
05/23/2023, 9:41 AMquiet-window-70232
05/23/2023, 10:42 AMlively-scientist-17848
05/23/2023, 11:29 AMbright-policeman-41717
05/24/2023, 2:36 PMstocky-manchester-34701
05/25/2023, 7:26 AMemail and password
. And the data mapping for github is also the one in the documentation. Did I make mistakes?dazzling-lock-68691
05/25/2023, 9:32 AMquiet-window-70232
05/25/2023, 10:25 AMlogin_challenge
and we need to call Ory Admin API to understand more about the flow, such as the client metadata. This adds an additional backend call to our frontend hence extra latency.
Is there a way to configure Hydra so the redirection is done with extra information in the URL? Such as client_id
etc.?limited-photographer-61008
05/25/2023, 1:07 PMlogin.after.password
flow-interrupting one that is working as expected. But the login.after
non-blocking/async one is not sending requests to my endpoint.curved-fountain-46946
05/26/2023, 10:53 AM13 INTERNAL: Received RST_STREAM with code 0
when making calls to Keto (in ory Network) from node (over grpc, hence the non-http error code), and I would really like to know why 🙂prehistoric-lamp-17081
05/26/2023, 11:00 AMrough-winter-14513
05/26/2023, 11:43 AMmagnificent-energy-493
05/26/2023, 11:59 AM