Add getAccessToAuthenticate function
Optional include authorization header