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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user