[ 
https://issues.apache.org/jira/browse/SYNCOPE-1660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17483140#comment-17483140
 ] 

Francesco Chicchiriccò commented on SYNCOPE-1660:
-------------------------------------------------

IMPORTANT: please note that this occurs with non-authenticated requests; when 
using the [anonymous user 
credentials|https://syncope.apache.org/docs/2.1/reference-guide.html#authorization-summary],
 instead, all is working as expected.

> Anonymous requests does not store domain and delegatedBy information in the 
> auth context
> ----------------------------------------------------------------------------------------
>
>                 Key: SYNCOPE-1660
>                 URL: https://issues.apache.org/jira/browse/SYNCOPE-1660
>             Project: Syncope
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 2.1.10
>            Reporter: Andrea Patricelli
>            Assignee: Francesco Chicchiriccò
>            Priority: Major
>             Fix For: 2.1.11, 3.0.0
>
>
> # Define a new domain or take sample domain Two as reference
>  # Create an user under that domain
>  # Try to perform a requestPasswordReset, here is the call:
> {code:java}
> curl -X 'POST' \
>   
> 'http://host:port/syncope/rest/users/self/requestPasswordReset?username=myusername'
>  \
>   -H 'accept: */*' \
>   -H 'X-Syncope-Domain: Two' \
>   -H 'Content-Type: */*' \
>   -d '' {code}
> you'll get a "not found" error since domain is not tracked in the auth 
> context.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to