1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-07 20:40:05 +00:00

feat(auth): added utils to get and check login header

This commit is contained in:
Yury
2024-06-21 11:24:06 +03:00
parent 2cca192f88
commit a90f699abd
11 changed files with 223 additions and 156 deletions

View File

@@ -1,8 +1,6 @@
import { SasAuthResponse } from '@sasjs/utils/types'
import { enLoginSuccessHeader } from '../AuthManager'
export const mockLoginAuthoriseRequiredResponse = `<form id="application_authorization" action="/SASLogon/oauth/authorize" method="POST"><input type="hidden" name="X-Uaa-Csrf" value="2nfuxIn6WaOURWL7tzTXCe"/>`
export const mockLoginSuccessResponse = enLoginSuccessHeader
export const mockAuthResponse: SasAuthResponse = {
access_token: 'acc355',