Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
newbie in JWT and AzureAD. Say, I received the JWT from Azure as below:
Problem:
1) WHAT To use to handle this JWT
2) How to access the exp in JWT.
3) what this number 1516890687 means and How to handle it
{
"aud": "https://graph.microsoft.com",
"iss": "https://sts.windows.net/xxx-xxx-xxx-xxx-xxx/",
"iat": 1516886787,
"nbf": 1516886787,
"exp": 1516890687,
"aio": "Y2NgYEjJXXXXXXXXXXXXXX=",
"app_displayname": "XXXXXXXX",
"appid": "xxx-xxx-xxxx-xxxx-xxxx",
"appidacr": "2",
"e_exp": 262800,
....
}
Thanks.
Microsoft Authentication Library (MSAL)
Using MSAL it is quite easy: authenticationResult.ExpiresOn
Using MSAL you will not have to handle it manually. Otherwise it is a unix timestamp, so 1516890687 is 01/25/2018 # 2:31pm (UTC).
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 months ago.
This post was edited and submitted for review 3 months ago and failed to reopen the post:
Not suitable for this site We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Improve this question
I need help to choose tools to create a web frontend for Jfrog Artifactory. It has a web ui, but it is not easy to use out of the box.
What I need, is to be able to create a simple webpage where "customers" can search out software, by enabling different properties on the artifacts.
Ex. if the CODESYS feature is desired, then it can be selected from a drop down box.
Product owner should also be able to mark releases available to external customers.
What tools should I use to be doing that?
Does Artifactory have tools to do this? '
Can I write a web page which does queries against Artifactory.
and if so what frameworks can be used
Or something else
You could leverage the jfrog-client-js
https://github.com/jfrog/jfrog-client-js
First you instantiate the client and get the object (jfrogClient in the case below)
let jfrogClient = new JfrogClient({
platformUrl: 'https://my-platform-url.jfrog.io/',
// artifactoryUrl - Set to use a custom Artifactory URL.
// xrayUrl - Set to use a custom Xray URL.
username: 'username',
password: 'password',
// OR
accessToken: 'accessToken',
// Optional parameters
proxy: { host: '<organization>-xray.jfrog.io', port: 8081, protocol: 'https' },
headers: { key1: 'value1', key2: 'value2' },
// Connection retries. If not defined, the default value is 3.
retries: 3,
});
Next, you use this object (jfrogClient) to interact with your Artifactory
jfrogClient.artifactory()
.search()
.aqlSearch(
'items.find({' +
'"repo":"my-repo-name",' +
'"path":{"$match":"*"}}' +
').include("name","repo","path","created").sort({"$desc":["created"]}).limit(10)'
);
.then(result => {
console.log(JSON.stringify(result));
})
.catch(error => {
console.error(error);
});
The above code will return an array of your search results, which you will then send to your web UI for display.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 1 year ago.
Improve this question
I have a firbebase project and since today I can't edit it with code and manually in the firebase console.
Here is an image of the structure of the project: https://i.stack.imgur.com/Qe1Nv.png
I use the following code to write usernames to a document in the firestore:
const auth = firebase.auth();
const db = firebase.firestore();
db.collection("users_information").doc("a_document").update({
"username": "some username"
})
but it throws this error: https://i.stack.imgur.com/p5H60.png
If I try to edit or delete the documents in the console the following error comes up:
Translation in English: The field couldn't be saved
Does anybody have an idea why this happens?
It could be an issue with the rules but I don't think so:
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}
}
Yes I know the rules are very weak but I am still developing. I have also heard often, that firebase sometimes diables a service if weak rules are public too long. But if that happens you receive an email and I didn't.
I hompe you can help me ^^
Edit:
I just received an email from Firebase, that there was a server issue. It wasn't my fault and it works again now.
This is an issue within your Firebase Project, This is what happens when either your rules are left public too long or there is a server outage. Firestore can no longer be read or written until it has been resolved.
Double-check your Firestore rules are secure and if problems persist, please contact Firebase Support
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 10 months ago.
Improve this question
I have Windows 10 and I want to run IIS.
I have activeted all features for it, as you can see here.
Then I type "localhost" in the browser and I take
"HTTP Error 503. The service is unavailable."
In some forums they say to control the log HTTP Error file, so I do, but it is empty.
Then I go to the ISS manager to see for configurations.
How can I resolve this "Il server è configurato per l'uso dell'autenticazione pass-through con un account predefinito per accedere al percorso fisico specificato. Tuttavia, Gestione IIS non può verificare se l'account predefinito ha l'accesso. Verificare che l'identità del pool di applicazioni abbia l'accesso in lettura al percorso fisico. Se questo server è aggiunto a un dominio e l'identità del pool di applicazioni è NetworkService o LocalSystem, verificare che '< dominio>\< nome_computer>$' abbia l'accesso in lettura al percorso fisico, quindi riprovare queste impostazioni."?
I understand that I have to verify if the identity of the App pool has the reading access to the physical path. Please help me. Thank you.
With IIS, the error message "HTTP Error 503. The service is unavailable." typically means the site itself is running but the application pool associated with the site is stopped. Check the application pool and start it if is stopped.
If you see the application pool stopping again after you request the page, check your Event Viewer for error entries explaining why it stopped the pool.
Just update the credentials in Application pool. You can update this by going to IIS manager=>Application Pools=> your pool name=>Right click then Advance Settings =>Identity=> custom and update the username and password that may help.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I forgot my WordPress admin password, and I see it in the phpMyAdmin file.
But it is in a different form.
How I can decode it to know what my password is?
Is there any tool for decoding passwords?
$P$BX5675uhhghfhgfhfhfgftut/0
Help me.
You can't easily decrypt the password from the hash string that you see. You should rather replace the hash string with a new one from a password that you do know.
There's a good howto here:
https://jakebillo.com/wordpress-phpass-generator-resetting-or-creating-a-new-admin-user/
Basically:
generate a new hash from a known password using e.g. http://scriptserver.mainframe8.com/wordpress_password_hasher.php, as described in the above link, or any other product that uses the phpass library,
use your DB interface (e.g. phpMyAdmin) to update the user_pass field with the new hash string.
If you have more users in this WordPress installation, you can also copy the hash string from one user whose password you know, to the other user (admin).
just edit wp_user table with your phpmyadmin, and choose MD5 on Function field then input your new password, save it (go button).
MD5 encrypting is possible, but decrypting is still unknown (to me). However, there are many ways to compare these things.
Using compare methods like so:
<?php
$db_pass = $P$BX5675uhhghfhgfhfhfgftut/0;
$my_pass = "mypass";
if ($db_pass === md5($my_pass)) {
// password is matched
} else {
// password didn't match
}
Only for WordPress users.
If you have access to your PHPMyAdmin, focus you have because you paste that hashing here: $P$BX5675uhhghfhgfhfhfgftut/0, WordPress user_pass is not only MD5 format it also uses utf8_mb4_cli charset so what to do?
That's why I use another Approach if I forget my WordPress password I use
I install other WordPress with new password :P, and I then go to PHPMyAdmin and copy that hashing from the database and paste that hashing to my current PHPMyAdmin password ( which I forget )
EASY is use this :
password = "ARJUNsingh#123"
password_hasing = " $P$BDSdKx2nglM.5UErwjQGeVtVWvjEvD1 "
Replace your $P$BX5675uhhghfhgfhfhfgftut/0 with my
$P$BDSdKx2nglM.5UErwjQGeVtVWvjEvD1
I USE THIS APPROACH FOR MY SELF WHEN I DESIGN THEMES AND PLUGINS
WORDPRESS USE THIS
https://developer.wordpress.org/reference/functions/wp_hash_password/
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 3 years ago.
Improve this question
I’ve just updated to the current github version of twitteR and am having some difficulties with httr authentication. I start by running the following:
library(twitteR)
consumer_key <- "---------------------"
consumer_secret <- "------------------------------------------"
access_token <- "-------------------------------------------------"
access_secret <- "-------------------------------------------"
setup_twitter_oauth(consumer_key, consumer_secret, access_token, access_secret,
credentials_file = "twitauth.RData")
So far so good. Then in a new R session with twitteR loaded I run load_twitter_oauth("twitauth.RData"). This does not appear to work because I get the following error when trying to do anything that requires me to be authenticated, e.g.:
getCurRateLimitInfo()
[1] "object 'access_token' not found"
Error in twInterfaceObj$doAPICall("application/rate_limit_status", params = params, :
Error: object 'access_token' not found
If instead of starting a new R session I try getCurRateLimitInfo() immediately after setup_twitter_oauth I get a different error:
getCurRateLimitInfo()
[1] "missing value where TRUE/FALSE needed"
Error in twInterfaceObj$doAPICall("application/rate_limit_status", params = params, :
Error: missing value where TRUE/FALSE needed
Am I missing some step in the authentication process here? I get the same problem on my work PC and my personal Mac, both using R version 3.0.2.