rollback to old api path for backward compatibility
This commit is contained in:
parent
8410bd6f22
commit
b518a1168e
@ -75,7 +75,7 @@ public class OAuth2Controller extends BaseController {
|
||||
@ApiOperation(value = "Get OAuth2 clients (getOAuth2Clients)", notes = "Get the list of OAuth2 clients " +
|
||||
"to log in with, available for such domain scheme (HTTP or HTTPS) (if x-forwarded-proto request header is present - " +
|
||||
"the scheme is known from it) and domain name and port (port may be known from x-forwarded-port header)")
|
||||
@PostMapping(value = "/noauth/oauth2/client")
|
||||
@PostMapping(value = "/noauth/oauth2Clients")
|
||||
public List<OAuth2ClientLoginInfo> getOAuth2Clients(HttpServletRequest request,
|
||||
@Parameter(description = "Mobile application package name, to find OAuth2 clients " +
|
||||
"where there is configured mobile application with such package name")
|
||||
|
||||
@ -224,7 +224,7 @@ export class AuthService {
|
||||
}
|
||||
|
||||
public loadOAuth2Clients(): Observable<Array<OAuth2ClientLoginInfo>> {
|
||||
const url = '/api/noauth/oauth2/client?platform=' + PlatformType.WEB;
|
||||
const url = '/api/noauth/oauth2Clients?platform=' + PlatformType.WEB;
|
||||
return this.http.post<Array<OAuth2ClientLoginInfo>>(url,
|
||||
null, defaultHttpOptions()).pipe(
|
||||
catchError(err => of([])),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user