mirror of
https://github.com/foss42/apidash.git
synced 2025-12-04 03:46:57 +08:00
refactor: update OAuth1 fields and normalize signature method display type
This commit is contained in:
@@ -76,9 +76,8 @@ class _OAuth1FieldsState extends State<OAuth1Fields> {
|
|||||||
ADPopupMenu<String>(
|
ADPopupMenu<String>(
|
||||||
value: _addAuthDataTo,
|
value: _addAuthDataTo,
|
||||||
values: const [
|
values: const [
|
||||||
('URL', 'url'),
|
('Request URL / Request Body', 'url'),
|
||||||
('Header', 'header'),
|
('Request Header', 'header'),
|
||||||
('Body', 'body'),
|
|
||||||
],
|
],
|
||||||
tooltip: "Select where to add API key",
|
tooltip: "Select where to add API key",
|
||||||
isOutlined: true,
|
isOutlined: true,
|
||||||
|
|||||||
@@ -26,7 +26,8 @@ String generateOAuth1AuthHeader(
|
|||||||
// Build OAuth parameters map
|
// Build OAuth parameters map
|
||||||
final oauthParams = <String, String>{
|
final oauthParams = <String, String>{
|
||||||
'oauth_consumer_key': oauth1Model.consumerKey,
|
'oauth_consumer_key': oauth1Model.consumerKey,
|
||||||
'oauth_signature_method': oauth1Model.signatureMethod.displayType,
|
'oauth_signature_method': oauth1Model.signatureMethod.displayType
|
||||||
|
.toUpperCase(),
|
||||||
'oauth_timestamp': timestamp,
|
'oauth_timestamp': timestamp,
|
||||||
'oauth_nonce': nonce,
|
'oauth_nonce': nonce,
|
||||||
'oauth_version': oauth1Model.version,
|
'oauth_version': oauth1Model.version,
|
||||||
|
|||||||
Reference in New Issue
Block a user